Skip to content

Commit d3cc090

Browse files
committed
fix(questionparameter): duplicate with GLPI 9.5
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 8ceb6b8 commit d3cc090

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

inc/question.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ public function updateParameters($input) {
663663
foreach ($input['_parameters'][$this->fields['fieldtype']] as $fieldName => $parameterInput) {
664664
$parameterInput['plugin_formcreator_questions_id'] = $this->getID();
665665
if ($parameters[$fieldName]->isNewItem()) {
666+
unset($parameterInput['id']);
666667
$parameters[$fieldName]->add($parameterInput);
667668
} else {
668669
$parameterInput['id'] = $parameters[$fieldName]->getID();

0 commit comments

Comments
 (0)