Skip to content

Commit

Permalink
fix(questionparameter): duplicate with GLPI 9.5
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Apr 1, 2020
1 parent 8ceb6b8 commit d3cc090
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ public function updateParameters($input) {
foreach ($input['_parameters'][$this->fields['fieldtype']] as $fieldName => $parameterInput) {
$parameterInput['plugin_formcreator_questions_id'] = $this->getID();
if ($parameters[$fieldName]->isNewItem()) {
unset($parameterInput['id']);
$parameters[$fieldName]->add($parameterInput);
} else {
$parameterInput['id'] = $parameters[$fieldName]->getID();
Expand Down

0 comments on commit d3cc090

Please sign in to comment.