/** * event function to update the notes * @param object $evctl */ function eventAjaxUpdateNotes(\EventControler $evctl) { if ((int) $evctl->idnotes > 0) { $this->getId((int) $evctl->idnotes); if ($_SESSION["do_cpaneluser"]->idcpanel_user === $this->idcpanel_user) { $notes = \CommonUtils::purify_input($evctl->notes_edit_data); $this->cleanValues(); $this->notes = $notes; $this->update((int) $evctl->idnotes); $notes = \CommonUtils::format_display_text($notes); echo \FieldType200::display_value($notes); } } }
/** * event function to update the notes * @param object $evctl */ function eventAjaxUpdateNotes(EventControler $evctl) { if ((int) $evctl->idnotes > 0 && $_SESSION["do_crm_action_permission"]->action_permitted('edit', 8, (int) $evctl->idnotes) === true) { $notes = CommonUtils::purify_input($evctl->notes_edit_data); $this->cleanValues(); $this->notes = $notes; $this->update((int) $evctl->idnotes); /*if (strlen($notes) > 200) { $notes = substr($notes, 0, 200); $notes .= ' <a href="#" onclick="view_more_notes(\''.$this->idnotes.'\'); return false;">more...</a>'; }*/ $notes = CommonUtils::format_display_text($notes); echo FieldType200::display_value($notes); } }