Skip to content
Snippets Groups Projects
Commit 25e1313a authored by Prasad's avatar Prasad
Browse files

Fix #779: Avoid truncating email which troubles inline edit

parent c068af20
No related branches found
No related tags found
No related merge requests found
......@@ -31,19 +31,19 @@ class Vtiger_Email_UIType extends Vtiger_Base_UIType {
*/
if($moduleName == "Users" && $fieldName == "user_name"){
$value = "<a class='cursorPointer' onclick=\"Vtiger_Helper_Js.getInternalMailer($recordId," .
"'$fieldName','$moduleName');\">" . textlength_check($value) . "</a>";
"'$fieldName','$moduleName');\">" . ($value) . "</a>";
}else{
$value = "<a class='emailField cursorPointer' onclick=\"Vtiger_Helper_Js.getInternalMailer($recordId," .
"'$fieldName','$moduleName');\">" . textlength_check($value) . "</a>";
"'$fieldName','$moduleName');\">" . ($value) . "</a>";
}
} else {
if($moduleName == "Users" && $fieldName == "user_name"){
$value = "<a class='cursorPointer' href='mailto:" . $value . "'>" . textlength_check($value) . "</a>";
$value = "<a class='cursorPointer' href='mailto:" . $value . "'>" . ($value) . "</a>";
}else{
$value = "<a class='emailField cursorPointer' href='mailto:" . $value . "'>" . textlength_check($value) . "</a>";
$value = "<a class='emailField cursorPointer' href='mailto:" . $value . "'>" . ($value) . "</a>";
}
}
}
return $value;
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment