Skip to content
Snippets Groups Projects
Commit cd3e9f96 authored by AUBRY JEAN-PASCAL's avatar AUBRY JEAN-PASCAL
Browse files

fix: display the right bottom slope value when a parametric section is generated

Refs #654
parent a43d6db3
No related branches found
No related tags found
2 merge requests!252release: version 4.18.0,!250Resolve "Courbe de remous - génération section paramétrée : la pente de fond n'est pas copiée"
Pipeline #162887 passed
/* 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;
......
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