We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 030f93e commit d0db95cCopy full SHA for d0db95c
1 file changed
inc/formanswer.class.php
@@ -847,9 +847,7 @@ public function prepareInputForAdd($input) {
847
848
$input = $this->setValidator($input, $form);
849
850
- $input['entities_id'] = isset($_SESSION['glpiactive_entity'])
851
- ? $_SESSION['glpiactive_entity']
852
- : $form->fields['entities_id'];
+ $input['entities_id'] = $_SESSION['glpiactive_entity'] ?? $form->fields['entities_id'];
853
854
$input['is_recursive'] = $form->fields['is_recursive'];
855
$input['plugin_formcreator_forms_id'] = $form->getID();
0 commit comments