Commit bed3acde authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Fix bug in Nub.resultHasMultipleValues()

Showing with 4 additions and 3 deletions
+4 -3
......@@ -706,15 +706,16 @@ export abstract class Nub extends ComputeNode implements IObservable {
* linked or not, is variated
*/
public resultHasMultipleValues(): boolean {
let hmv = false;
for (const p of this.parameterIterator) {
if (p.valueMode === ParamValueMode.MINMAX || p.valueMode === ParamValueMode.LISTE) {
return true;
hmv = true;
} else if (p.valueMode === ParamValueMode.LINK && p.isReferenceDefined()) {
// indirect recursivity
return p.referencedValue.hasMultipleValues();
hmv = hmv || p.referencedValue.hasMultipleValues();
}
}
return false;
return hmv;
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment