Skip to content

Commit

Permalink
fix: inverted existence test on ticket update
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Sep 5, 2022
1 parent 8f4d151 commit 2acc5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ function plugin_formcreator_hook_update_ticket(CommonDBTM $item) {
// No issue linked to the ticket,
// then find the form answer linked to the ticket
$formAnswer = new PluginFormcreatorFormAnswer();
if ($formAnswer->getFromDbByTicket($id)) {
if (!$formAnswer->getFromDbByTicket($id)) {
// Should not happen as one and only one form answer shall be linked to a ticket
// If several formanswer found, the previous getFromDBByCrit() logs an error
return;
Expand Down

0 comments on commit 2acc5cd

Please sign in to comment.