Skip to content

Commit

Permalink
refactor: dont force issue list options (frappe#31613)
Browse files Browse the repository at this point in the history
Setting route option forces the filters, only default filters should be
set and not forced for each visit.
  • Loading branch information
ankush authored Jul 18, 2022
1 parent b620287 commit 755a060
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions erpnext/support/doctype/issue/issue_list.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
frappe.listview_settings['Issue'] = {
colwidths: {"subject": 6},
add_fields: ['priority'],
filters: [["status", "=", "Open"]],
onload: function(listview) {
frappe.route_options = {
"status": "Open"
};

var method = "erpnext.support.doctype.issue.issue.set_multiple_status";

listview.page.add_action_item(__("Set as Open"), function() {
Expand Down

0 comments on commit 755a060

Please sign in to comment.