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"; $modObj->save("Faq"); if($modObj->id != "") { if($fieldname == "comments") { $comments = $modObj->getFAQComments($modObj->id); echo ":#:SUCCESS".$comments; } else echo ":#:SUCCESS"; }else { echo ":#:FAILURE"; } }else { echo ":#:FAILURE"; } }elseif($ajaxaction == "LOADRELATEDLIST" || $ajaxaction == "DISABLEMODULE"){ require_once 'include/ListView/RelatedListViewContents.php'; } ?>