Skip to content
Snippets Groups Projects
Commit 828dc263 authored by David Dorchies's avatar David Dorchies
Browse files

fix: failed test on result invalidation on chained modules

- regression introduced in ea4ed26b

Refs #469
parent 806c4307
No related branches found
No related tags found
No related merge requests found
Pipeline #139478 canceled
......@@ -420,15 +420,13 @@ export abstract class FormulaireDefinition extends FormulaireNode implements Obs
*/
public resetResults(visited: string[] = [], symbol?: string, forceResetAllDependencies: boolean = false) {
// console.debug(`FormulaireDefinition.resetResults(${visited})`);
if (this.currentNub.result !== undefined) {
visited.push(this.currentNub.uid);
// reset GUI results
this.resetFormResults();
// reset model results
this.currentNub.resetResult();
// reset the result panels of all forms depending on this one
ServiceFactory.formulaireService.resetAllDependingFormsResults(this, visited, symbol, forceResetAllDependencies);
}
visited.push(this.currentNub.uid);
// reset GUI results
this.resetFormResults();
// reset model results
this.currentNub.resetResult();
// reset the result panels of all forms depending on this one
ServiceFactory.formulaireService.resetAllDependingFormsResults(this, visited, symbol, forceResetAllDependencies);
}
protected abstract compute();
......
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