Skip to content

Commit d6adbbf

Browse files
committed
fix(dropdownfield): add security token for GLPI 9.5.3
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent c5044cf commit d6adbbf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inc/field/dropdownfield.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@ public function getRenderedHtml($canEdit = true): string {
377377
if (!empty($this->question->fields['values'])) {
378378
$dparams = $this->buildParams($rand);
379379
$dparams['display'] = false;
380+
if (version_compare(GLPI_VERSION, '9.5.3') >= 0) {
381+
$params['_idor_token'] = Session::getNewIDORToken(User::getType());
382+
}
380383
$html .= $itemtype::dropdown($dparams);
381384
}
382385
$html .= PHP_EOL;

0 commit comments

Comments
 (0)