[Vtigercrm-commits] [vtiger-commits] r10510 - /vtigercrm/branches/5.0.3/modules/Settings/profilePrivileges.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Mar 21 02:18:49 EDT 2007


Author: saraj
Date: Wed Mar 21 00:18:45 2007
New Revision: 10510

Log:
problem in profile creation fixed

Modified:
    vtigercrm/branches/5.0.3/modules/Settings/profilePrivileges.php

Modified: vtigercrm/branches/5.0.3/modules/Settings/profilePrivileges.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Settings/profilePrivileges.php (original)
+++ vtigercrm/branches/5.0.3/modules/Settings/profilePrivileges.php Wed Mar 21 00:18:45 2007
@@ -427,30 +427,33 @@
 if($mode=='view')
 {
 	$fieldListResult = getProfile2AllFieldList($modArr,$profileId);
-	$field_module=array();
-	$module_name=key($fieldListResult);
-	$module_id = getTabid($module_name);
-	$language_strings = return_module_language($current_language,$module_name);
-	for($j=0; $j<count($fieldListResult[$module_name]); $j++)
-	{
-		$field=array();
-		if($disable_field_array[$fieldListResult[$module_name][$j][4]] == 1)
-		{
-			$visible = "<img src=".$image_path."/no.gif>";
-		}
-		else
-		{
-			$visible = "<img src=".$image_path."/prvPrfSelectedTick.gif>";
-		}
-		if($language_strings[$fieldListResult[$module_name][$j][0]] != '')
-			$field[]=$language_strings[$fieldListResult[$module_name][$j][0]];
-		else
-			$field[]=$fieldListResult[$module_name][$j][0];
-		$field[]=$visible;
-		$field_module[]=$field;
-	}
-	$privilege_field[$module_id] = array_chunk($field_module,3);
-	next($fieldListResult);
+	for($i=0; $i<count($fieldListResult);$i++)
+	{
+		$field_module=array();
+		$module_name=key($fieldListResult);
+		$module_id = getTabid($module_name);
+		$language_strings = return_module_language($current_language,$module_name);
+		for($j=0; $j<count($fieldListResult[$module_name]); $j++)
+		{
+			$field=array();
+			if($disable_field_array[$fieldListResult[$module_name][$j][4]] == 1)
+			{
+				$visible = "<img src=".$image_path."/no.gif>";
+			}
+			else
+			{
+				$visible = "<img src=".$image_path."/prvPrfSelectedTick.gif>";
+			}
+			if($language_strings[$fieldListResult[$module_name][$j][0]] != '')
+				$field[]=$language_strings[$fieldListResult[$module_name][$j][0]];
+			else
+				$field[]=$fieldListResult[$module_name][$j][0];
+			$field[]=$visible;
+			$field_module[]=$field;
+		}
+		$privilege_field[$module_id] = array_chunk($field_module,3);
+		next($fieldListResult);
+	}
 }
 elseif($mode=='edit')
 {





More information about the vtigercrm-commits mailing list