From d3cc090770822bec4edde61832a6ee50007657af Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Wed, 1 Apr 2020 09:52:53 +0200 Subject: [PATCH] fix(questionparameter): duplicate with GLPI 9.5 Signed-off-by: Thierry Bugier --- inc/question.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/question.class.php b/inc/question.class.php index a743b8844..b60aee3ef 100644 --- a/inc/question.class.php +++ b/inc/question.class.php @@ -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();