Skip to content

Commit

Permalink
fix(issue): warning with GLPI 9.5
Browse files Browse the repository at this point in the history
need to load the item from DB before display

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Mar 11, 2020
1 parent 44d63fd commit 5899d27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions front/issue.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
Html::redirect($CFG_GLPI["root_doc"]."/front/helpdesk.public.php");
}

$issue->getFromDBByCrit([
'original_id' => (int) $_REQUEST['id'],
'sub_itemtype' => $_REQUEST['sub_itemtype'],
]);
$issue->display($_REQUEST);

if (plugin_formcreator_replaceHelpdesk()) {
Expand Down

0 comments on commit 5899d27

Please sign in to comment.