Skip to content

Commit 23fe611

Browse files
committed
refactor(targetticket): simplify code
1 parent 4f1cdf6 commit 23fe611

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

inc/targetticket.class.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -934,12 +934,9 @@ public function save(PluginFormcreatorFormAnswer $formanswer): ?CommonDBTM {
934934
'date' => $_SESSION['glpi_currenttime'],
935935
'users_id' => Session::getLoginUserID(),
936936
'content' => $message,
937-
'_do_not_compute_takeintoaccount' => true
938-
];
939-
// GLPI 9.4+
940-
$followUpInput += [
941-
'items_id' => $ticketID,
942-
'itemtype' => Ticket::class,
937+
'_do_not_compute_takeintoaccount' => true,
938+
'itemtype' => Ticket::class,
939+
'items_id' => $ticketID,
943940
];
944941
$ticketFollowup = new ITILFollowup();
945942
$ticketFollowup->add($followUpInput);

0 commit comments

Comments
 (0)