Skip to content
Snippets Groups Projects
Commit 63a416ce authored by François Grand's avatar François Grand
Browse files

fix: pressure loss calculator JSON configuration: bad select id

refs #585
parent 666e455a
No related branches found
No related tags found
2 merge requests!225Release v4.17.0,!193Resolve "Restructurer Lechapt et Calmon pour de nouvelles lois de pertes de charge"
......@@ -4,7 +4,7 @@
"type": "fieldset",
"fields": [
{
"id": "select_pressureloss_law",
"id": "select_pressurelosstype",
"type": "select",
"property": "pressureLossType",
"default": "LechaptCalmon",
......
{
"fs_pressureloss_law": "Pressure loss",
"select_pressureloss_law": "Pressure loss law",
"select_pressurelosstype": "Pressure loss law",
"fs_materiau": "Type of material",
"select_material": "Choice of material",
"MATERIAL_0": "Unlined cast iron - Coarse concrete (corrosive water)",
......
{
"fs_pressureloss_law": "Perte de charge",
"select_pressureloss_law": "Loi de perte de charge",
"select_pressurelosstype": "Loi de perte de charge",
"fs_materiau": "Type du matériau",
"select_material": "Choix du matériau",
"MATERIAL_0": "Fonte ou acier non revêtus - Béton grossier (eau corrosive)",
......
......@@ -9,7 +9,7 @@ export class FormulairePressureLoss extends FormulaireFixedVar {
super.preparseConfig(json);
// get pressure loss law select default value
const dft: string = this.parseSelectDefaultValue(json, "select_pressureloss_law");
const dft: string = this.parseSelectDefaultValue(json, "select_pressurelosstype");
this.defaultProperties["pressureLossType"] = PressureLossType[dft];
}
......
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