Skip to content
Snippets Groups Projects
Commit 6ab918a6 authored by François Grand's avatar François Grand
Browse files

fix: predams: input parameter changed after calculation

refs #620
parent 785e0281
No related branches found
No related tags found
2 merge requests!225Release v4.17.0,!223Resolve "PreBarrage: Changement intempestif des paramètres d'ouvrage au changement d'équation"
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment