Skip to content

Commit 1b70a25

Browse files
committed
fix(form): undefined var used
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 380e9ca commit 1b70a25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

front/form.form.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
$item_ticket = new Item_Ticket;
146146
$tickets = $item_ticket->find([
147147
'itemtype' => PluginFormcreatorFormAnswer::class,
148-
'items_id' => $answers_id
148+
'items_id' => $formAnswer->getID(),
149149
]);
150150

151151
if (count($tickets) === 1) {
@@ -155,7 +155,7 @@
155155
}
156156

157157
if (count($tickets) > 1) {
158-
Html::redirect(PluginFormcreatorFormAnswer::getFormURLWithID($answers_id));
158+
Html::redirect(PluginFormcreatorFormAnswer::getFormURLWithID($formAnswer->getID()));
159159
}
160160
}
161161

0 commit comments

Comments
 (0)