From 28347511a4de3f2b2ac12c2daf7c2cc2afc2d026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grand?= <francois.grand@inrae.fr> Date: Fri, 12 May 2023 15:32:36 +0200 Subject: [PATCH] fix: predams: input parameter changed after calculation refs #620 --- src/app/formulaire/elements/fieldset.ts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/app/formulaire/elements/fieldset.ts b/src/app/formulaire/elements/fieldset.ts index 73e6b8535..179920686 100644 --- a/src/app/formulaire/elements/fieldset.ts +++ b/src/app/formulaire/elements/fieldset.ts @@ -218,29 +218,6 @@ export class FieldSet extends FormulaireElement implements IProperties { this.clearFields(); this.parseFields(); } - else { - const nub = this.parentForm.currentNub; - for (const e of this.parentForm.allFormElements) { - if (e instanceof NgParameter) { - const p: ParamDefinition = nub.getParameter(e.symbol); - switch (e.paramDefinition.valueMode) { - case ParamValueMode.SINGLE: - e.setValue(this, p.singleValue); - break; - - case ParamValueMode.MINMAX: - e.setMinValue(this, p.min); - e.setMaxValue(this, p.max); - e.setStepValue(this, p.step); - break; - - case ParamValueMode.LISTE: - e.setValueList(this, p.valueList); - break; - } - } - } - } this.updateLocalisation(); -- GitLab