Skip to content

Commit

Permalink
fix(form): saved input problem
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jan 21, 2022
1 parent 8a7f3f3 commit bdd1211
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1467,6 +1467,12 @@ public function post_updateItem($history = 1) {
$this->updateValidators();
if (!isset($this->input['_skip_checks']) || !$this->input['_skip_checks']) {
$this->updateConditions($this->input);

if (count($this->updates) < 1) {
// When updating conditions in the questions tab, need to clear saved inputs
// because no data changed in the form itself, and GLPI does not clears the input
// saved in the session
$this->clearSavedInput();
}
}

Expand Down

0 comments on commit bdd1211

Please sign in to comment.