From 169d2c8e1fb836bb18b908ce3863bd920150671c Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Mon, 5 Sep 2022 14:08:57 +0200 Subject: [PATCH] fix(form): undefined var --- inc/form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/form.class.php b/inc/form.class.php index 888553a15..83367ac6f 100644 --- a/inc/form.class.php +++ b/inc/form.class.php @@ -888,6 +888,7 @@ protected function showSearchBar() : void { protected function showMyLastForms() : void { $limit = 5; $formanswerUrl = PluginFormcreatorFormAnswer::getSearchURL(); + $rawKeyBase = 'ITEM_' . PluginFormcreatorFormAnswer::class; echo '
'; echo '
'.sprintf(__('My %1$d last forms (requester)', 'formcreator'), $limit).'
'; $criteria = [ @@ -921,7 +922,6 @@ protected function showMyLastForms() : void { echo '
'; echo '
    '; foreach ($search['data']['rows'] as $formAnswer) { - $rawKeyBase = 'ITEM_' . PluginFormcreatorFormAnswer::class; switch ($formAnswer['raw']["${rawKeyBase}_8"]) { case PluginFormcreatorFormAnswer::STATUS_WAITING: $status = CommonITILObject::WAITING;