[Vtigercrm-commits] [vtiger-commits] r6111 - /vtigercrm/trunk/Smarty/templates/RoleEditView.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed May 17 06:40:04 EDT 2006


Author: don
Date: Wed May 17 04:39:59 2006
New Revision: 6111

Log:
Fixed issue in role duplication check

Modified:
    vtigercrm/trunk/Smarty/templates/RoleEditView.tpl

Modified: vtigercrm/trunk/Smarty/templates/RoleEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/RoleEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/RoleEditView.tpl Wed May 17 04:39:59 2006
@@ -15,8 +15,15 @@
 {ldelim}
 	//show("status");
 	var ajaxObj = new Ajax(ajaxSaveResponse);
-	var rolename = document.getElementById('rolename').value; 
-	var urlstring ="module=Users&action=UsersAjax&file=SaveRole&ajax=true&dup_check=true&roleName="+rolename;
+	var rolename = document.getElementById('rolename').value;
+	var mode = getObj('mode').value;
+	var roleid = getObj('roleid').value;
+	if(mode == 'edit')
+		var urlstring ="module=Users&action=UsersAjax&file=SaveRole&ajax=true&dup_check=true&mode="+mode+"&roleName="+rolename+"&roleid="+roleid;
+	else
+		var urlstring ="module=Users&action=UsersAjax&file=SaveRole&ajax=true&dup_check=true&roleName="+rolename;
+	alert(urlstring)	
+
 	ajaxObj.process("index.php?",urlstring);
 {rdelim}
 function ajaxSaveResponse(response)





More information about the vtigercrm-commits mailing list