Skip to content
Snippets Groups Projects
Commit 3c253eda authored by Dorchies David's avatar Dorchies David
Browse files

Merge branch...

Merge branch '388-champ-vide-a-la-creation-d-un-module-les-champs-de-section-ne-sont-pas-vides-quand-on-choisit' into 'master'

Resolve "Champ vide à la création d'un module: les champs de section ne sont pas vides quand on choisit un type de section"

Closes #388

See merge request !85
parents 05c7d181 83205579
No related branches found
No related tags found
1 merge request!85Resolve "Champ vide à la création d'un module: les champs de section ne sont pas vides quand on choisit un type de section"
Pipeline #137847 passed
import { FormulaireFixedVar } from "./form-fixedvar";
import { FieldSet } from "../elements/fieldset";
import { ServiceFactory } from "../../services/service-factory";
import { IObservable, Session, SectionNub } from "jalhyd";
......@@ -17,6 +18,11 @@ export class FormulaireSection extends FormulaireFixedVar {
// show / hide dependent fields
fs.updateFields();
}
// empty fields ? only those belonging to the specific section type
if (ServiceFactory.instance.applicationSetupService.enableEmptyFieldsOnFormInit) {
// "LargeurBerge" is hackily used as LargeurFond in Rectangular and Trapez sections, omit it here
this.emptyFields([ "Ks", "Q", "If", "YB", "iPrec", "Y" ]);
}
this.reset();
}
}
......
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