Commit 625b757b authored by Grand Francois's avatar Grand Francois
Browse files

fix: added structure field not empty after modifying the first one

refs #536
parent dfe689d8
Pipeline #35796 passed with stages
in 17 minutes and 11 seconds
......@@ -75,15 +75,15 @@ export class FieldsetContainerComponent implements DoCheck, AfterViewInit {
* dans un nouveau fieldset
*/
private addSubNub(after: FieldSet, clone: boolean = false) {
const prms = after.backupParameters();
const prms = clone ? after.backupParameters() : undefined;
const newFs = this._container.addFromTemplate(0, after.indexAsKid());
if (clone) {
// replace in-place to change properties (overkill)
// @WTF why only those two ?
newFs.setPropValue("structureType", after.properties.getPropValue("structureType"));
newFs.setPropValue("loiDebit", after.properties.getPropValue("loiDebit"));
newFs.restoreParameters(prms);
}
newFs.restoreParameters(prms);
}
private onFieldsetListChange() {
......
Markdown is supported
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