Skip to content

Commit

Permalink
fix(issue): incomplete data on ticket creation
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jun 7, 2022
1 parent 42a4557 commit ef858cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,16 +358,19 @@ function plugin_formcreator_hook_add_ticket(CommonDBTM $item) {
$issueName = $item->fields['name'] != '' ? addslashes($item->fields['name']) : '(' . $item->getID() . ')';
$issue = new PluginFormcreatorIssue();
$issue->add([
'name' => $issueName,
'display_id' => 't_' . $item->getID(),
'items_id' => $item->getID(),
'itemtype' => 'Ticket',
'name' => $issueName,
'status' => $validationStatus,
'date_creation' => $item->fields['date'],
'date_mod' => $item->fields['date_mod'],
'entities_id' => $item->fields['entities_id'],
'is_recursive' => '0',
'requester_id' => $requester['users_id'],
'comment' => addslashes($item->fields['content']),
'users_id_recipient' => $item->fields['users_id_recipient'],

]);
}

Expand Down

0 comments on commit ef858cd

Please sign in to comment.