diff --git a/src/app/formulaire/definition/form-verificateur.ts b/src/app/formulaire/definition/form-verificateur.ts index 0c7db532842e2b6784d06e9518ee3d9f34e129c8..92d538c9895305fa7a48791ccb2a0e32922a1275 100644 --- a/src/app/formulaire/definition/form-verificateur.ts +++ b/src/app/formulaire/definition/form-verificateur.ts @@ -29,7 +29,7 @@ export class FormulaireVerificateur extends FormulaireFixedVar { if (sender instanceof SelectFieldCustom) { if (sender.id === "select_target_pass" && data.action === "select") { // update Verificateur property: Pass to check - (this._currentNub as Verificateur).nubToVerify = data.value ? data.value.value : undefined; + this._currentNub.properties.setPropValue("nubToVerify", data.value ? data.value.value : undefined); // refresh jet type selector const ntv = (this._currentNub as Verificateur).nubToVerify; (this.getFormulaireNodeById("select_pab_jet_type") as SelectField).disabled = ! (ntv !== undefined && ntv.calcType === CalculatorType.Pab); diff --git a/src/app/formulaire/elements/select-field-custom.ts b/src/app/formulaire/elements/select-field-custom.ts index 7b5584a509a63769b386c388624c1b561efbbea8..393d5a0bb7a7b45a4df8fd8765982a27b00141d9 100644 --- a/src/app/formulaire/elements/select-field-custom.ts +++ b/src/app/formulaire/elements/select-field-custom.ts @@ -44,7 +44,10 @@ export class SelectFieldCustom extends SelectField { case "verificateur_species": // Vérificateur, liste d'espèces (choix multiple) const sl = (nub as Verificateur).speciesList; if (sl !== undefined) { - this.setValueFromId(sl.map((s) => this._entriesBaseId + s )); + this.setValueFromId(sl.map((s) => { + const spgId = s.substring(s.lastIndexOf("_") + 1); + return this._entriesBaseId + spgId; + })); } break; }