Skip to content

Commit

Permalink
fix(form): undefined var used
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Dec 3, 2019
1 parent 380e9ca commit 1b70a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front/form.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
$item_ticket = new Item_Ticket;
$tickets = $item_ticket->find([
'itemtype' => PluginFormcreatorFormAnswer::class,
'items_id' => $answers_id
'items_id' => $formAnswer->getID(),
]);

if (count($tickets) === 1) {
Expand All @@ -155,7 +155,7 @@
}

if (count($tickets) > 1) {
Html::redirect(PluginFormcreatorFormAnswer::getFormURLWithID($answers_id));
Html::redirect(PluginFormcreatorFormAnswer::getFormURLWithID($formAnswer->getID()));
}
}

Expand Down

0 comments on commit 1b70a25

Please sign in to comment.