Skip to content

Commit

Permalink
Allow enabling field specific search for shortDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Jun 23, 2023
1 parent a7bcf0d commit 0cc6cac
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ export class FieldEditorModalComponent extends ConfigurationEditorModalComponent
public isConstraintIndexOptionEnabled(): boolean {

return this.category.name !== 'Project'
&& (this.field.name !== FieldResource.SHORTDESCRIPTION)
&& this.availableInputTypes.find(inputType => inputType.name === this.getInputType()).searchable;
}

Expand All @@ -279,11 +278,6 @@ export class FieldEditorModalComponent extends ConfigurationEditorModalComponent
id: 'configuration.fieldSpecificSearch.notAllowedForInputType',
value: 'Eine feldspezifische Suche ist für Felder dieses Eingabetyps nicht möglich.'
});
} else if (this.field.name === FieldResource.SHORTDESCRIPTION) {
return this.i18n({
id: 'configuration.fieldSpecificSearch.changingNotAllowed',
value: 'Die Einstellung kann für dieses Feld nicht geändert werden.'
});
} else {
return '';
}
Expand Down

0 comments on commit 0cc6cac

Please sign in to comment.