[ACS-6647] covert aca:fields to app:fields (#3838)

This commit is contained in:
tamaragruszka
2024-05-09 15:57:15 +02:00
committed by GitHub
parent 2e9ab2b35c
commit acb848d39d
6 changed files with 10 additions and 10 deletions

View File

@@ -270,7 +270,7 @@ describe('SearchComponent', () => {
it('should update the user query whenever configuration changed', () => {
params.next({ q: '=orange' });
queryBuilder.configUpdated.next({ 'aca:fields': ['cm:tag'] } as any);
queryBuilder.configUpdated.next({ 'app:fields': ['cm:tag'] } as any);
expect(queryBuilder.userQuery).toBe(`((=cm:tag:"orange"))`);
expect(queryBuilder.update).toHaveBeenCalled();
});

View File

@@ -127,7 +127,7 @@ export class SearchResultsComponent extends PageComponent implements OnInit {
.subscribe(([params, searchConfig]) => {
// eslint-disable-next-line no-prototype-builtins
this.searchedWord = params.hasOwnProperty(this.queryParamName) ? params[this.queryParamName] : null;
const query = this.formatSearchQuery(this.searchedWord, searchConfig['aca:fields']);
const query = this.formatSearchQuery(this.searchedWord, searchConfig['app:fields']);
if (query) {
this.queryBuilder.userQuery = decodeURIComponent(query);
}