[Vtigercrm-commits] [vtiger-commits] r9367 - /vtigercrm/trunk/modules/uploads/add2db.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat Sep 9 04:38:16 EDT 2006
Author: richie
Date: Sat Sep 9 02:37:18 2006
New Revision: 9367
Log:
Postgres fixes by Jens done --By Don
Modified:
vtigercrm/trunk/modules/uploads/add2db.php
Modified: vtigercrm/trunk/modules/uploads/add2db.php
==============================================================================
--- vtigercrm/trunk/modules/uploads/add2db.php (original)
+++ vtigercrm/trunk/modules/uploads/add2db.php Sat Sep 9 02:37:18 2006
@@ -47,10 +47,10 @@
{
$desc = $_REQUEST['txtDescription'];
$description = addslashes($desc);
- $date_var = date('YmdHis');
+ $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."')";
+ $query .= $current_id."','".$current_user->id."','".$current_user->id."','".$_REQUEST['return_module'].' Attachment'."','".$description."',".$date_var.")";
$result = $adb->query($query);
$sql = "insert into vtiger_attachments values(";
More information about the vtigercrm-commits
mailing list