diff --git a/frontend/src/app/GN2CommonModule/form/dynamic-form/dynamic-form.component.html b/frontend/src/app/GN2CommonModule/form/dynamic-form/dynamic-form.component.html index d91ad8f687..b1ec8b2462 100644 --- a/frontend/src/app/GN2CommonModule/form/dynamic-form/dynamic-form.component.html +++ b/frontend/src/app/GN2CommonModule/form/dynamic-form/dynamic-form.component.html @@ -286,16 +286,13 @@ [idMenu]="formDefComp['id_menu']" [idList]="formDefComp['id_list']" [codeList]="formDefComp['code_list']" + [multiSelect]="formDefComp['multi_select']" > diff --git a/frontend/src/app/GN2CommonModule/form/observers/observers.component.ts b/frontend/src/app/GN2CommonModule/form/observers/observers.component.ts index d2151901c2..ab07ca8a3e 100644 --- a/frontend/src/app/GN2CommonModule/form/observers/observers.component.ts +++ b/frontend/src/app/GN2CommonModule/form/observers/observers.component.ts @@ -42,7 +42,7 @@ export class ObserversComponent extends GenericFormComponent { ngOnInit() { this.bindValue = this.bindAllItem ? null : this.bindValue; - this.multiSelect = this.multiSelect || true; + this.multiSelect = this.multiSelect == undefined ? true : this.multiSelect; // uniformise as IdList the id of list // retrocompat: keep idMenu if (this.idList) {