mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
refactor: dont force issue list options (#31613)
Setting route option forces the filters, only default filters should be set and not forced for each visit.
This commit is contained in:
@@ -1,11 +1,8 @@
|
|||||||
frappe.listview_settings['Issue'] = {
|
frappe.listview_settings['Issue'] = {
|
||||||
colwidths: {"subject": 6},
|
colwidths: {"subject": 6},
|
||||||
add_fields: ['priority'],
|
add_fields: ['priority'],
|
||||||
|
filters: [["status", "=", "Open"]],
|
||||||
onload: function(listview) {
|
onload: function(listview) {
|
||||||
frappe.route_options = {
|
|
||||||
"status": "Open"
|
|
||||||
};
|
|
||||||
|
|
||||||
var method = "erpnext.support.doctype.issue.issue.set_multiple_status";
|
var method = "erpnext.support.doctype.issue.issue.set_multiple_status";
|
||||||
|
|
||||||
listview.page.add_action_item(__("Set as Open"), function() {
|
listview.page.add_action_item(__("Set as Open"), function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user