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

Session: improved PabCloisons creation

Showing with 7 additions and 1 deletion
+7 -1
......@@ -379,7 +379,13 @@ export class Session {
break;
case CalculatorType.PabCloisons:
nub = new PabCloisons(undefined); // don't forget to init with a Cloisons model afterwards !
const modeleCloisons: string = params.getPropValue("modeleCloisons");
if (modeleCloisons) {
const cloisons = (Session.getInstance().findNubByUid(modeleCloisons) as Cloisons);
nub = new PabCloisons(cloisons);
} else {
nub = new PabCloisons(undefined); // don't forget to init with a Cloisons model afterwards !
}
break;
default:
......
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