From 0cbc08a4a29f9625dd213f7aabffe24883b818a6 Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Wed, 4 Dec 2019 12:04:21 +0100 Subject: [PATCH] FEAT #12091 TIME 0:05 fix field type --- .../app/indexation/field-list/field-list.component.html | 2 +- .../app/indexation/indexing-form/indexing-form.component.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/app/indexation/field-list/field-list.component.html b/src/frontend/app/indexation/field-list/field-list.component.html index 465a0ba649f..8d88cd548d0 100644 --- a/src/frontend/app/indexation/field-list/field-list.component.html +++ b/src/frontend/app/indexation/field-list/field-list.component.html @@ -80,7 +80,7 @@ {{field.label}} </div> <div class="fieldInput"> - <ng-container *ngIf="field.type === 'string'"> + <ng-container *ngIf="field.type === 'string' || field.type === 'autocomplete'"> <mat-form-field class="input-form" floatLabel="never"> <textarea matInput [placeholder]="lang[field.type + 'Input']" matTextareaAutosize matAutosizeMinRows="1" cdkAutosizeMaxRows="6" disabled></textarea> diff --git a/src/frontend/app/indexation/indexing-form/indexing-form.component.ts b/src/frontend/app/indexation/indexing-form/indexing-form.component.ts index 5babdb9d6ff..16f0d76ec9f 100644 --- a/src/frontend/app/indexation/indexing-form/indexing-form.component.ts +++ b/src/frontend/app/indexation/indexing-form/indexing-form.component.ts @@ -754,7 +754,6 @@ export class IndexingFormComponent implements OnInit { initValidator(field: any) { let valArr: ValidatorFn[] = []; - console.log(field.default_value); this.arrFormControl[field.identifier] = new FormControl({ value: field.default_value, disabled: (field.today && this.adminMode) ? true : false }); if (field.type === 'integer') { -- GitLab