[Vtigercrm-commits] [vtiger-commits] r10480 - /vtigercrm/branches/5.0.3/modules/Settings/profilePrivileges.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 19 11:43:47 EDT 2007
Author: saraj
Date: Mon Mar 19 09:43:43 2007
New Revision: 10480
Log:
fields disabled globally, disabled in profile field display
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 Mon Mar 19 09:43:43 2007
@@ -427,8 +427,6 @@
if($mode=='view')
{
$fieldListResult = getProfile2AllFieldList($modArr,$profileId);
- for($i=0; $i<count($fieldListResult);$i++)
- {
$field_module=array();
$module_name=key($fieldListResult);
$module_id = getTabid($module_name);
@@ -436,13 +434,13 @@
for($j=0; $j<count($fieldListResult[$module_name]); $j++)
{
$field=array();
- if($fieldListResult[$module_name][$j][1] == 0)
+ 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>";
- }
- else
- {
- $visible = "<img src=".$image_path."/no.gif>";
}
if($language_strings[$fieldListResult[$module_name][$j][0]] != '')
$field[]=$language_strings[$fieldListResult[$module_name][$j][0]];
More information about the vtigercrm-commits
mailing list