Vgr: v5.0.4 Bugs &Errors

From Kb_JMY(晉明夷)

Jump to: navigation, search

VtigerCRM v5.0.4 Bugs & Errors


myName@cs.mysite-hk.com -> invalid email address?

  • Ref:
  1. forums.vtiger.com: myName@cs.mysite-hk.com -> invalid email address?
  2. forums.vtiger.com: v5.0.3 Problem of Email format "MyName@scd-ulp.u-strasbg.fr"


  • Solution: <-- Not Checked!
  • Change the code in:
  1. "htdocs-vtigerCRM-include-js-general.js"
  2. "htdocs-vtigerCRM-include-js-QuickCreate.js" (the same code as the first file, I do not know when this code is called)
  • search and find the old code:
if (!re.test(currObj.value)) {
  alert(alert_arr.ENTER_VALID + fldLabel)
  currObj.focus()
  return false
}
  • Change them to:
if (!re.test(currObj.value)) {
  if (type.toUpperCase()=="EMAIL") {
    alert(alert_arr.ENTER_VALID + fldLabel + ".  Our DB saved the email, but you must verify it!")
    currObj.focus()
    return true
  } else {
    alert(alert_arr.ENTER_VALID + fldLabel)
    currObj.focus()
    return false
  }
}