diff --git a/src/app/components/generic-calculator/calculator.component.ts b/src/app/components/generic-calculator/calculator.component.ts index 68aea17bcec85ecf87ffe2fdf77f9a7c30c66feb..499b77cc1e47a960394c46a9fe790b391f860dc2 100644 --- a/src/app/components/generic-calculator/calculator.component.ts +++ b/src/app/components/generic-calculator/calculator.component.ts @@ -1268,7 +1268,7 @@ export class GenericCalculatorComponent implements OnInit, DoCheck, AfterViewChe public async generateBackwaterInPAM() { const f: FormulaireDefinition = await this.formulaireService.createFormulaire(CalculatorType.MacroRugoRemous); const mrr = (f.currentNub as MacroRugoRemous); - mrr.setPropValue("nubMacroRugo", this.formulaire.currentNub.uid); + mrr.setPropValue(MacroRugoRemous.NubMacroRugoProp, this.formulaire.currentNub.uid); this.router.navigate(["/calculator", f.uid]); } diff --git a/src/app/formulaire/elements/select/select-field-target-pam.ts b/src/app/formulaire/elements/select/select-field-target-pam.ts index 9970670afd9c20a6c9d43c755817bf96a51ed6d2..177166a829b0fb8aa5525c5fb3d67777c4f8d5ad 100644 --- a/src/app/formulaire/elements/select/select-field-target-pam.ts +++ b/src/app/formulaire/elements/select/select-field-target-pam.ts @@ -8,7 +8,7 @@ import { FormulaireNode } from "../formulaire-node"; export class SelectFieldTargetPam extends SelectField { constructor(parent: FormulaireNode) { super(parent); - this._associatedProperty = "nubMacroRugo"; + this._associatedProperty = MacroRugoRemous.NubMacroRugoProp; } protected populate() {