[Vtigercrm-commits] [vtiger-commits] r7571 - /vtigercrm/trunk/modules/Reports/Reports.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Jun 27 07:38:30 EDT 2006
Author: richie
Date: Tue Jun 27 05:38:27 2006
New Revision: 7571
Log:
issue in reports has been fixed
Modified:
vtigercrm/trunk/modules/Reports/Reports.php
Modified: vtigercrm/trunk/modules/Reports/Reports.php
==============================================================================
--- vtigercrm/trunk/modules/Reports/Reports.php (original)
+++ vtigercrm/trunk/modules/Reports/Reports.php Tue Jun 27 05:38:27 2006
@@ -21,9 +21,7 @@
global $report_modules;
global $related_modules;
-global $profileList;
-
-$profileList = getCurrentUserProfileList();
+
$adv_filter_options = array("e"=>"equals",
"n"=>"not equal to",
"s"=>"starts with",
@@ -301,7 +299,6 @@
{
global $adb;
global $log;
- global $profileList;
global $current_user;
@@ -317,6 +314,7 @@
else
{
+ $profileList = getCurrentUserProfileList();
$sql = "select * from vtiger_field inner join vtiger_profile2field on vtiger_profile2field.fieldid=vtiger_field.fieldid inner join vtiger_def_org_field on vtiger_def_org_field.fieldid=vtiger_field.fieldid where vtiger_field.uitype != 50 and vtiger_field.tabid=".$tabid." and vtiger_field.block in (".$block .") and vtiger_field.displaytype in (1,2) and vtiger_profile2field.visible=0 and vtiger_def_org_field.visible=0 and vtiger_profile2field.profileid in ".$profileList." group by vtiger_field.fieldid order by sequence";
}
$result = $adb->query($sql);
@@ -458,7 +456,6 @@
global $adb;
global $log;
global $current_user;
- global $profileList;
require('user_privileges/user_privileges_'.$current_user->id.'.php');
$tabid = getTabid($module);
@@ -474,6 +471,8 @@
}
else
{
+
+ $profileList = getCurrentUserProfileList();
$sql = "select * from vtiger_field inner join vtiger_tab on vtiger_tab.tabid = vtiger_field.tabid inner join vtiger_profile2field on vtiger_profile2field.fieldid=vtiger_field.fieldid inner join vtiger_def_org_field on vtiger_def_org_field.fieldid=vtiger_field.fieldid where vtiger_field.tabid=".$tabid." and (vtiger_field.uitype =5 or vtiger_field.displaytype=2) and vtiger_profile2field.visible=0 and vtiger_def_org_field.visible=0 and vtiger_field.block in (".$blockids.") and vtiger_profile2field.profileid in ".$profileList." order by vtiger_field.sequence";
}
@@ -925,7 +924,6 @@
global $adb;
global $log;
global $current_user;
- global $profileList;
require('user_privileges/user_privileges_'.$current_user->id.'.php');
$tabid = getTabid($module);
$escapedchars = Array('_SUM','_AVG','_MIN','_MAX');
@@ -935,6 +933,7 @@
}
else
{
+ $profileList = getCurrentUserProfileList();
$ssql = "select * from vtiger_field inner join vtiger_tab on vtiger_tab.tabid = vtiger_field.tabid inner join vtiger_def_org_field on vtiger_def_org_field.fieldid=vtiger_field.fieldid inner join vtiger_profile2field on vtiger_profile2field.fieldid=vtiger_field.fieldid where vtiger_field.uitype != 50 and vtiger_field.tabid=".$tabid." and vtiger_field.displaytype = 1 and vtiger_def_org_field.visible=0 and vtiger_profile2field.visible=0 and vtiger_profile2field.profileid in ".$profileList." order by sequence";
}
$result = $adb->query($ssql);
More information about the vtigercrm-commits
mailing list