Skip to content

Commit

Permalink
fix: don't show bulk actions for doctype with workflow
Browse files Browse the repository at this point in the history
(cherry picked from commit 75b0142)
  • Loading branch information
barredterra authored and mergify[bot] committed Apr 9, 2024
1 parent 67f8425 commit 6703592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frappe/public/js/frappe/list/list_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -1968,7 +1968,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
};

// bulk edit
if (has_editable_fields(doctype)) {
if (has_editable_fields(doctype) && !frappe.model.has_workflow(doctype)) {
actions_menu_items.push(bulk_edit());
}

Expand Down Expand Up @@ -2001,7 +2001,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
}

// bulk delete
if (frappe.model.can_delete(doctype)) {
if (frappe.model.can_delete(doctype) && !frappe.model.has_workflow(doctype)) {
actions_menu_items.push(bulk_delete());
}

Expand Down

0 comments on commit 6703592

Please sign in to comment.