[Vtigercrm-commits] [vtiger-commits] r10981 - /vtigercrm/branches/5.0.3/modules/Emails/Save.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed May 23 08:42:44 EDT 2007


Author: richie
Date: Wed May 23 06:42:38 2007
New Revision: 10981

Log:
* Fixed the issue in saving the date_start because of the format. Now we will assign the date in the user's date format which will be converted and saved in db date format in save function. Previously default y-m-d is used where as when the user's date format is not yyyy-mm-dd then date_start will not be saved, Fixed #3924

Modified:
    vtigercrm/branches/5.0.3/modules/Emails/Save.php

Modified: vtigercrm/branches/5.0.3/modules/Emails/Save.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Emails/Save.php (original)
+++ vtigercrm/branches/5.0.3/modules/Emails/Save.php Wed May 23 06:42:38 2007
@@ -221,7 +221,7 @@
 $focus->parent_type = $_REQUEST['parent_type'];
 $focus->column_fields["assigned_user_id"]=$current_user->id;
 $focus->column_fields["activitytype"]="Emails";
-$focus->column_fields["date_start"]= date('Y-m-d');
+$focus->column_fields["date_start"]= date(getNewDisplayDate());//This will be converted to db date format in save
 $focus->save("Emails");
 
 //saving the email details in vtiger_emaildetails vtiger_table





More information about the vtigercrm-commits mailing list