Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: dont force issue list options #31613

Merged
merged 1 commit into from
Jul 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
refactor: dont force issue list options
Setting route option forces the filters, only default filters should be
set and not forced for each visit.
  • Loading branch information
ankush committed Jul 18, 2022
commit bbea05b568b5d9cab38ae4bd111983ad85263455
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