[Vtigercrm-commits] [vtiger-commits] r10639 - /vtigercrm/branches/5.0.3/Smarty/templates/GroupEditView.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 11 08:59:36 EDT 2007


Author: saraj
Date: Wed Apr 11 06:59:31 2007
New Revision: 10639

Log:
* Validation has been done in group name in new group creation, Fixed #3538

Modified:
    vtigercrm/branches/5.0.3/Smarty/templates/GroupEditView.tpl

Modified: vtigercrm/branches/5.0.3/Smarty/templates/GroupEditView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/GroupEditView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/GroupEditView.tpl Wed Apr 11 06:59:31 2007
@@ -21,6 +21,9 @@
 		var reminstr = '&mode='+mode+'&groupName='+groupname+'&groupid='+groupid;
 	else
 		var reminstr = '&groupName='+groupname;
+	var status = usernameValid(groupname);
+	if(status)
+	{ldelim}
 	new Ajax.Request(
 		'index.php',
 		{ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
@@ -33,9 +36,11 @@
 					alert(response.responseText);
 			{rdelim}
 		{rdelim}
-	);
-{rdelim}
-
+		);
+	{rdelim}
+	else
+		alert(alert_arr.NO_SPECIAL+" in Group Name ")
+{rdelim}
 var constructedOptionValue;
 var constructedOptionName;
 





More information about the vtigercrm-commits mailing list