Merge pull request #35767 from sokumon/sidebar-filter-fixes

This commit is contained in:
Soham Kulkarni 2026-01-08 15:55:22 +05:30 committed by GitHub
commit af6f61e140
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,10 +54,13 @@ frappe.ui.sidebar_item.TypeLink = class SidebarItem {
tab: this.item.tab,
};
if (this.item.filters) {
let filters_json = frappe.utils.get_filter_as_json(
JSON.parse(this.item.filters)
let filters_json = JSON.parse(
frappe.utils.get_filter_as_json(JSON.parse(this.item.filters))
);
args.filters = filters_json;
if (this.item.link_type == "DocType") {
args.doc_view = "List";
args.filters = filters_json;
}
}
path = frappe.utils.generate_route(args);
}