Browse Source

fix issue of state no longer in workflow (#4530)

version-14
Zarrar 7 years ago
committed by Rushabh Mehta
parent
commit
d740ccc1ef
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/public/js/frappe/model/workflow.js

+ 1
- 1
frappe/public/js/frappe/model/workflow.js View File

@@ -56,7 +56,7 @@ frappe.workflow = {
var state = doc[state_fieldname] ||
frappe.workflow.get_default_state(doctype, doc.docstatus);

var allow_edit = state ? frappe.workflow.get_document_state(doctype, state).allow_edit : null;
var allow_edit = state ? frappe.workflow.get_document_state(doctype, state) && frappe.workflow.get_document_state(doctype, state).allow_edit : null;

if(!frappe.user_roles.includes(allow_edit)) {
return true;


Loading…
Cancel
Save