[Vtigercrm-commits] [vtiger-commits] r7741 - /vtigercrm/trunk/modules/Faq/DetailViewAjax.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Jul 3 15:15:36 EDT 2006


Author: saraj
Date: Mon Jul  3 13:15:32 2006
New Revision: 7741

Log:
* Modified to avoid the comment save, when we edit other fields through ajax edit

Modified:
    vtigercrm/trunk/modules/Faq/DetailViewAjax.php

Modified: vtigercrm/trunk/modules/Faq/DetailViewAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Faq/DetailViewAjax.php (original)
+++ vtigercrm/trunk/modules/Faq/DetailViewAjax.php Mon Jul  3 13:15:32 2006
@@ -27,6 +27,11 @@
 	{
 		$modObj = new Faq();
 		$modObj->retrieve_entity_info($crmid,"Faq");
+
+		//Added to avoid the comment save, when we edit other fields through ajax edit
+		if($fieldname != 'comments')
+			$modObj->column_fields['comments'] = '';
+
 		$modObj->column_fields[$fieldname] = $fieldvalue;
 		$modObj->id = $crmid;
 		$modObj->mode = "edit";





More information about the vtigercrm-commits mailing list