Skip to content

Commit

Permalink
fix(form): bad session var type when using anonymous form
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Sep 1, 2020
1 parent bbcfc8a commit 9d43e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/formdisplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
$_SESSION['formcreator_forms_id'] = $form->fields['id'];
$_SESSION['glpiname'] = 'formcreator_temp_user';
$_SESSION['valid_id'] = session_id();
$_SESSION['glpiactiveentities'] = $form->fields['entities_id'];
$_SESSION['glpiactiveentities'] = [$form->fields['entities_id']];
$subentities = getSonsOf('glpi_entities', $form->fields['entities_id']);
$_SESSION['glpiactiveentities_string'] = (!empty($subentities))
? "'" . implode("', '", $subentities) . "'"
Expand Down

0 comments on commit 9d43e80

Please sign in to comment.