[Vtigercrm-commits] [vtiger-commits] r10699 - /vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Apr 17 01:02:13 EDT 2007
Author: richie
Date: Mon Apr 16 23:02:08 2007
New Revision: 10699
Log:
fix for The field Add Comment doesn't need to display in Advance Search. Fixes #3392 --minnie
Modified:
vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
Modified: vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/SearchUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/SearchUtils.php Mon Apr 16 23:02:08 2007
@@ -392,6 +392,10 @@
$sql = "select * from vtiger_field ";
$sql.= " where vtiger_field.tabid=".$tabid." and";
$sql.= " vtiger_field.displaytype in (1,2)";
+ if($tabid == 13 || $tabid == 15)
+ {
+ $sql.= " and vtiger_field.fieldlabel != 'Add Comment'";
+ }
$sql.= " order by block,sequence";
}
else
@@ -400,7 +404,13 @@
$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 ";
$sql.= " where vtiger_field.tabid=".$tabid." and";
$sql.= " vtiger_field.displaytype in (1,2) and vtiger_profile2field.visible=0";
- $sql.= " and vtiger_def_org_field.visible=0 and vtiger_profile2field.profileid in ".$profileList." order by block,sequence";
+ $sql.= " and vtiger_def_org_field.visible=0 and vtiger_profile2field.profileid in ".$profileList;
+ if($tabid == 13 || $tabid == 15)
+ {
+ $sql.= " and vtiger_field.fieldlabel != 'Add Comment'";
+ }
+ $sql .= " order by block,sequence";
+
}
More information about the vtigercrm-commits
mailing list