Skip to content
Snippets Groups Projects
Commit 8dcbcdbd authored by Mathias Chouet's avatar Mathias Chouet Committed by mathias.chouet
Browse files

Fix again

parent 8721a77f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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;
}
......
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