diff --git a/src/app/components/generic-calculator/calculator.component.ts b/src/app/components/generic-calculator/calculator.component.ts index c68de58dbccf56b5b67933b82adb0f1913d7eee8..84f141806c65175548622e0522802ce5b8164f19 100644 --- a/src/app/components/generic-calculator/calculator.component.ts +++ b/src/app/components/generic-calculator/calculator.component.ts @@ -515,7 +515,14 @@ export class GenericCalculatorComponent implements OnInit, DoCheck, AfterViewChe private allParamsAreFixed() { let ret = true; for (const p of this._formulaire.currentNub.parameterIterator) { - ret = ret && (! p.hasMultipleValues); + if (p.valueMode === ParamValueMode.LINK) { + ret = ret && (! p.hasMultipleValues); + } else { + // avoid calling hasMultipleValues here, because changing parameter mode in GUI + // switches valueMode before setting min/max/step or valuesList, and iterator + // checker fails to count values that do not exist yet + ret = ret && (! [ ParamValueMode.LISTE, ParamValueMode.MINMAX ].includes(p.valueMode)); + } } return ret; }