[Vtigercrm-commits] [vtiger-commits] r7259 - /vtigercrm/trunk/data/CRMEntity.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Jun 19 06:55:54 EDT 2006
Author: saraj
Date: Mon Jun 19 04:55:51 2006
New Revision: 7259
Log:
* Modified to handle the comments information save using Ajax edit where as previously when we save using ajax (from detailview) it wont save because in this case the request value is empty
Modified:
vtigercrm/trunk/data/CRMEntity.php
Modified: vtigercrm/trunk/data/CRMEntity.php
==============================================================================
--- vtigercrm/trunk/data/CRMEntity.php (original)
+++ vtigercrm/trunk/data/CRMEntity.php Mon Jun 19 04:55:51 2006
@@ -905,9 +905,14 @@
else
$ownertype = 'customer';
- if($_REQUEST['comments'] != '')
- {
- $comment = addslashes($_REQUEST['comments']);
+ if($this->column_fields['comments'] != '')
+ $comment = $this->column_fields['comments'];
+ else
+ $comment = $_REQUEST['comments'];
+
+ if($comment != '')
+ {
+ $comment = addslashes($comment);
$sql = "insert into vtiger_ticketcomments values('',".$this->id.",'".$comment."','".$current_user->id."','".$ownertype."','".$current_time."')";
$adb->query($sql);
}
More information about the vtigercrm-commits
mailing list