From a2e3acc5e3c6fa62d6c875c8c48dadf96cd3ac4a Mon Sep 17 00:00:00 2001 From: Angelika Kinas Date: Wed, 22 May 2024 11:42:16 +0200 Subject: [PATCH] chore(fields.service): Change private fields and private injectore to protected in order to be able to extend the class --- libs/feature/search/src/lib/utils/service/fields.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/feature/search/src/lib/utils/service/fields.service.ts b/libs/feature/search/src/lib/utils/service/fields.service.ts index 246dd21da0..1096380a15 100644 --- a/libs/feature/search/src/lib/utils/service/fields.service.ts +++ b/libs/feature/search/src/lib/utils/service/fields.service.ts @@ -36,7 +36,7 @@ marker('search.filters.contact') providedIn: 'root', }) export class FieldsService { - private fields = { + protected fields = { publisher: new OrganizationSearchField(this.injector), format: new SimpleSearchField('format', this.injector, 'asc'), resourceType: new TranslatedSearchField( @@ -76,7 +76,7 @@ export class FieldsService { return Object.keys(this.fields) } - constructor(private injector: Injector) {} + constructor(protected injector: Injector) {} getAvailableValues(fieldName: string) { if (this.supportedFields.indexOf(fieldName) === -1)