[Vtigercrm-commits] [vtiger-commits] r10599 - /vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Apr 9 08:41:18 EDT 2007
Author: richie
Date: Mon Apr 9 06:41:14 2007
New Revision: 10599
Log:
fix for My Preference : db warning, while tying to edit the Reports to field as a non-admin. Fixes #3602 --minnie
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 9 06:41:14 2007
@@ -83,6 +83,7 @@
$j++;
}
$field_list .=')';
+ $field=Array();
if($is_admin==false)
{
$profileList = getCurrentUserProfileList();
@@ -98,7 +99,6 @@
AND vtiger_profile2field.profileid IN ".$profileList."
AND vtiger_field.fieldname IN ".$field_list;
$result = $adb->query($query);
- $field=Array();
for($k=0;$k < $adb->num_rows($result);$k++)
{
$field[]=$adb->query_result($result,$k,"fieldname");
@@ -253,6 +253,7 @@
$j++;
}
$field_list .=')';
+ $field=Array();
if($is_admin==false && $module != 'Users')
{
$profileList = getCurrentUserProfileList();
@@ -268,7 +269,6 @@
AND vtiger_profile2field.profileid IN ".$profileList."
AND vtiger_field.fieldname IN ".$field_list;
$result = $adb->query($query);
- $field=Array();
for($k=0;$k < $adb->num_rows($result);$k++)
{
$field[]=$adb->query_result($result,$k,"fieldname");
@@ -483,6 +483,7 @@
$j++;
}
$field_list .=')';
+ $field=Array();
if($is_admin==false)
{
$profileList = getCurrentUserProfileList();
@@ -502,7 +503,6 @@
AND vtiger_profile2field.profileid IN ".$profileList."
AND vtiger_field.fieldname IN ".$field_list;
$result = $adb->query($query);
- $field=Array();
for($k=0;$k < $adb->num_rows($result);$k++)
{
$field[]=$adb->query_result($result,$k,"fieldname");
@@ -832,6 +832,7 @@
}
$field_list .=')';
+ $field=Array();
if($is_admin==false && $module != 'Users')
{
$profileList = getCurrentUserProfileList();
@@ -848,7 +849,6 @@
AND vtiger_field.fieldname IN ".$field_list;
$result = $adb->query($query);
- $field=Array();
for($k=0;$k < $adb->num_rows($result);$k++)
{
$field[]=$adb->query_result($result,$k,"fieldname");
More information about the vtigercrm-commits
mailing list