[Vtigercrm-commits] [vtiger-commits] r10673 - /vtigercrm/branches/5.0.3/modules/CustomView/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Apr 13 06:33:46 EDT 2007
Author: saraj
Date: Fri Apr 13 04:33:41 2007
New Revision: 10673
Log:
Problem in viewing contact and potential customview - fixed. Fixes #3502 and #3504
Modified:
vtigercrm/branches/5.0.3/modules/CustomView/Save.php
Modified: vtigercrm/branches/5.0.3/modules/CustomView/Save.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/CustomView/Save.php (original)
+++ vtigercrm/branches/5.0.3/modules/CustomView/Save.php Fri Apr 13 04:33:41 2007
@@ -120,22 +120,24 @@
$columnresult = $adb->query($columnsql);
}
$log->info("CustomView :: Save :: vtiger_cvcolumnlist created successfully");
-
- $stdfiltersql = "INSERT INTO vtiger_cvstdfilter
- (cvid,
- columnname,
- stdfilter,
- startdate,
- enddate)
+ if($std_filter_list["columnname"] !="")
+ {
+ $stdfiltersql = "INSERT INTO vtiger_cvstdfilter
+ (cvid,
+ columnname,
+ stdfilter,
+ startdate,
+ enddate)
VALUES
- (".$genCVid.",
- ".$adb->quote($std_filter_list["columnname"]).",
-
- ".$adb->quote($std_filter_list["stdfilter"]).",
- ".$adb->formatDate($std_filter_list["startdate"]).",
- ".$adb->formatDate($std_filter_list["enddate"]).")";
- $stdfilterresult = $adb->query($stdfiltersql);
- $log->info("CustomView :: Save :: vtiger_cvstdfilter created successfully");
+ (".$genCVid.",
+ ".$adb->quote($std_filter_list["columnname"]).",
+
+ ".$adb->quote($std_filter_list["stdfilter"]).",
+ ".$adb->formatDate($std_filter_list["startdate"]).",
+ ".$adb->formatDate($std_filter_list["enddate"]).")";
+ $stdfilterresult = $adb->query($stdfiltersql);
+ $log->info("CustomView :: Save :: vtiger_cvstdfilter created successfully");
+ }
for($i=0;$i<count($adv_filter_col);$i++)
{
$advfiltersql = "INSERT INTO vtiger_cvadvfilter
@@ -195,20 +197,23 @@
$columnresult = $adb->query($columnsql);
}
$log->info("CustomView :: Save :: vtiger_cvcolumnlist update successfully".$genCVid);
- $stdfiltersql = "INSERT INTO vtiger_cvstdfilter
- (cvid,
- columnname,
- stdfilter,
- startdate,
- enddate)
+ if($std_filter_list["columnname"] !="")
+ {
+ $stdfiltersql = "INSERT INTO vtiger_cvstdfilter
+ (cvid,
+ columnname,
+ stdfilter,
+ startdate,
+ enddate)
VALUES
- (".$genCVid.",
- ".$adb->quote($std_filter_list["columnname"]).",
- ".$adb->quote($std_filter_list["stdfilter"]).",
- ".$adb->formatDate($std_filter_list["startdate"]).",
- ".$adb->formatDate($std_filter_list["enddate"]).")";
- $stdfilterresult = $adb->query($stdfiltersql);
- $log->info("CustomView :: Save :: vtiger_cvstdfilter update successfully".$genCVid);
+ (".$genCVid.",
+ ".$adb->quote($std_filter_list["columnname"]).",
+ ".$adb->quote($std_filter_list["stdfilter"]).",
+ ".$adb->formatDate($std_filter_list["startdate"]).",
+ ".$adb->formatDate($std_filter_list["enddate"]).")";
+ $stdfilterresult = $adb->query($stdfiltersql);
+ $log->info("CustomView :: Save :: vtiger_cvstdfilter update successfully".$genCVid);
+ }
for($i=0;$i<count($adv_filter_col);$i++)
{
$advfiltersql = "INSERT INTO vtiger_cvadvfilter
More information about the vtigercrm-commits
mailing list