We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ff1c33 commit 4f20c9dCopy full SHA for 4f20c9d
1 file changed
inc/formanswer.class.php
@@ -1294,7 +1294,7 @@ public function post_addItem() {
1294
if (($this->input['users_id_validator'] ?? 0) != 0) {
1295
$auto_approval = ($current_user == $this->input['users_id_validator']);
1296
} else if (($this->input['groups_id_validator'] ?? 0) != 0) {
1297
- $auto_approval = ($current_user !== false && in_array($this->input['groups_id_validator'], $_SESSION['glpigroups'] ?? []));
+ $auto_approval = ($current_user !== false && in_array($this->input['groups_id_validator'], $_SESSION['glpigroups'] ?? []));
1298
}
1299
if ($auto_approval) {
1300
PluginFormcreatorFormanswerValidation::updateValidationStatus($this, PluginFormcreatorForm_Validator::VALIDATION_STATUS_ACCEPTED);
0 commit comments