@@ -109,11 +109,12 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
|
||||
* @param integer $users_id optional, if null will uses logged-in user
|
||||
*/
|
||||
public function addTicketFollowup( $itemId, $txtForFollowup, $users_id=null ) {
|
||||
global $DB;
|
||||
$fu = new TicketFollowup();
|
||||
$fu->getEmpty(); // to get default values
|
||||
$input = $fu->fields;
|
||||
if (isset( $txtForFollowup['GLPI_TICKET_FOLLOWUP_CONTENT'] )) {
|
||||
$input['content']=$txtForFollowup['GLPI_TICKET_FOLLOWUP_CONTENT'];
|
||||
$input['content'] = $DB->escape($txtForFollowup['GLPI_TICKET_FOLLOWUP_CONTENT']);
|
||||
}
|
||||
if (isset( $txtForFollowup['GLPI_TICKET_FOLLOWUP_IS_PRIVATE'] )) {
|
||||
$input['is_private'] = $txtForFollowup['GLPI_TICKET_FOLLOWUP_IS_PRIVATE'];
|
||||
|
||||
Reference in New Issue
Block a user