[Vtigercrm-commits] [vtiger-commits] r10489 - /vtigercrm/branches/5.0.3/modules/uploads/add2db.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Mar 20 05:58:09 EDT 2007
Author: saraj
Date: Tue Mar 20 03:58:04 2007
New Revision: 10489
Log:
fix for mysql sql_mode
Modified:
vtigercrm/branches/5.0.3/modules/uploads/add2db.php
Modified: vtigercrm/branches/5.0.3/modules/uploads/add2db.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/uploads/add2db.php (original)
+++ vtigercrm/branches/5.0.3/modules/uploads/add2db.php Tue Mar 20 03:58:04 2007
@@ -53,9 +53,10 @@
$desc = $_REQUEST['txtDescription'];
$description = addslashes($desc);
$date_var = $adb->formatDate(date('YmdHis'));
-
- $query = "insert into vtiger_crmentity (crmid,smcreatorid,smownerid,setype,description,createdtime) values('";
- $query .= $current_id."','".$current_user->id."','".$current_user->id."','".$_REQUEST['return_module'].' Attachment'."','".$description."',".$date_var.")";
+ $current_date = getdate();
+ $current_date = $adb->formatDate(date('YmdHis'));
+ $query = "insert into vtiger_crmentity (crmid,smcreatorid,smownerid,setype,description,createdtime,modifiedtime) values('";
+ $query .= $current_id."','".$current_user->id."','".$current_user->id."','".$_REQUEST['return_module'].' Attachment'."','".$description."',".$date_var.",".$current_date.")";
$result = $adb->query($query);
# Added by DG 26 Oct 2005
More information about the vtigercrm-commits
mailing list