[Vtigercrm-commits] [vtiger-commits] r10767 - /vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Apr 23 15:05:10 EDT 2007
Author: saraj
Date: Mon Apr 23 13:05:06 2007
New Revision: 10767
Log:
Account Name in listview header invisible to non-admin user
Modified:
vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
Modified: vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Mon Apr 23 13:05:06 2007
@@ -75,6 +75,10 @@
$fieldname = $oCv->list_fields_name[$name];
}
}
+ if($fieldname == 'accountname')
+ {
+ $fieldname = 'account_id';
+ }
if($j != 0)
{
$field_list .= ', ';
@@ -123,6 +127,11 @@
if(isset($oCv->list_fields_name))
{
$fieldname = $oCv->list_fields_name[$name];
+ if($fieldname == 'accountname')
+ {
+ $fieldname = 'account_id';
+ }
+
}else
{
$fieldname = $focus->list_fields_name[$name];
@@ -198,13 +207,12 @@
}
}
//added to display vtiger_currency symbol in related listview header
- if($name =='Amount' && $relatedlist !='' )
+ if($name =='Amount' && $relatedlist !='' )
{
$rate_symbol=getCurrencySymbolandCRate($user_info['currency_id']);
$curr_symbol = $rate_symbol['symbol'];
$name .=' (in '.$curr_symbol.')';
}
-
//Added condition to hide the close column in Related Lists
if($name == $app_strings['Close'] && $relatedlist != '' && $relatedlist != 'global')
{
@@ -491,6 +499,11 @@
$fieldname = $oCv->list_fields_name[$name];
}
}
+ if($fieldname == 'accountname')
+ {
+ $fieldname = 'account_id';
+ }
+
if($j != 0)
{
$field_list .= ', ';
@@ -601,11 +614,14 @@
if(isset($oCv->list_fields_name))
{
$fieldname = $oCv->list_fields_name[$name];
+ if($fieldname == 'accountname')
+ {
+ $fieldname = 'account_id';
+ }
}
}
if($is_admin==true || $profileGlobalPermission[1] == 0 || $profileGlobalPermission[2] ==0 || in_array($fieldname,$field) || $fieldname == '')
{
-
if($fieldname == '')
More information about the vtigercrm-commits
mailing list