Skip to content

Commit

Permalink
fix(form): undefined var
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Sep 5, 2022
1 parent 6cd29e6 commit 169d2c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ protected function showSearchBar() : void {
protected function showMyLastForms() : void {
$limit = 5;
$formanswerUrl = PluginFormcreatorFormAnswer::getSearchURL();
$rawKeyBase = 'ITEM_' . PluginFormcreatorFormAnswer::class;
echo '<div id="plugin_formcreator_last_req_forms" class="card">';
echo '<div class="card-title">'.sprintf(__('My %1$d last forms (requester)', 'formcreator'), $limit).'</div>';
$criteria = [
Expand Down Expand Up @@ -921,7 +922,6 @@ protected function showMyLastForms() : void {
echo '<div class="card-body">';
echo '<ul class="list-group">';
foreach ($search['data']['rows'] as $formAnswer) {
$rawKeyBase = 'ITEM_' . PluginFormcreatorFormAnswer::class;
switch ($formAnswer['raw']["${rawKeyBase}_8"]) {
case PluginFormcreatorFormAnswer::STATUS_WAITING:
$status = CommonITILObject::WAITING;
Expand Down

0 comments on commit 169d2c8

Please sign in to comment.