Skip to content

Commit 08c82d5

Browse files
committed
bugfix: save relation field filter in grid config
display relation column heading in italic if it is filtered
1 parent 9b05d62 commit 08c82d5

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

public/js/pimcore/object/folder/search.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,14 @@ pimcore.object.search = Class.create(pimcore.object.helpers.gridTabAbstract, {
293293

294294
col.filter.value = filterValue;
295295
}
296-
} else {
297-
break;
296+
}
297+
} else {
298+
if (this.filter) {
299+
const filterValue = this.filter.find(filter => filter.property === col.dataIndex)?.value || null;
300+
301+
if(filterValue) {
302+
col.text = '<i>'+col.text+'</i>';
303+
}
298304
}
299305
}
300306
}
@@ -352,10 +358,11 @@ pimcore.object.search = Class.create(pimcore.object.helpers.gridTabAbstract, {
352358

353359
if (this.filter) {
354360
this.filter.forEach(filt => {
355-
this.filterUpdateFunction(this.grid, this.toolbarFilterInfo, this.clearFilterButton);
361+
this.store.setFilters(new Ext.util.Filter(filt));
356362
});
357-
}
358363

364+
this.filterUpdateFunction(this.grid, this.toolbarFilterInfo, this.clearFilterButton);
365+
}
359366

360367
this.grid.on("columnmove", function () {
361368
this.saveColumnConfigButton.show()

0 commit comments

Comments
 (0)