[Vtigercrm-commits] [vtiger-commits] r10895 - /vtigercrm/branches/5.0.3/modules/CustomView/Save.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sun May 13 11:38:51 EDT 2007


Author: richie
Date: Sun May 13 09:38:45 2007
New Revision: 10895

Log:
* Fixed the issue in converting the date if we provide date and time, Fixed #3718

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 Sun May 13 09:38:45 2007
@@ -150,7 +150,14 @@
 						{
 							$val = Array();
 							for($x=0;$x<count($temp_val);$x++)
-								$val[$x] = getDBInsertDateValue(trim($temp_val[$x]));
+							{
+								//if date and time given then we have to convert the date and leave the time as it is, if date only given then temp_time value will be empty
+								list($temp_date,$temp_time) = explode(" ",$temp_val[$x]);
+								$temp_date = getDBInsertDateValue(trim($temp_date));
+								if(trim($temp_time) != '')
+									$temp_date .= ' '.$temp_time;
+								$val[$x] = $temp_date;
+							}
 							$adv_filter_value[$i] = implode(", ",$val);
 						}
 						$advfiltersql = "INSERT INTO vtiger_cvadvfilter





More information about the vtigercrm-commits mailing list