diff --git a/src/app/services/formulaire.service.ts b/src/app/services/formulaire.service.ts index 7e139665be6cea66a35d89cd14b88fe99220799a..9053c30d52be0868473f1c2af673eba2a53e63b3 100644 --- a/src/app/services/formulaire.service.ts +++ b/src/app/services/formulaire.service.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/member-ordering */ import { Injectable } from "@angular/core"; import { decode } from "he"; @@ -872,8 +873,12 @@ export class FormulaireService extends Observable { if (this.currentForm.currentNub instanceof SectionNub) { const sn: SectionNub = this.currentForm.currentNub; if (sn instanceof RegimeUniforme || sn instanceof CourbeRemous) { + // change _If visibility to copy section + sn.section.prms.If.visible = true; // copy section const serialisedSection = sn.section.serialise(); + // Reinitialize _If visibility + sn.section.prms.If.visible = false; const sectionCopy: acSection = Session.getInstance().unserialiseSingleNub(serialisedSection, false).nub as acSection; if (Y !== undefined) { sectionCopy.prms.Y.singleValue = Y;