Browse Source

chore: Update frappe/public/js/frappe/form/controls/base_control.js

Co-authored-by: Prssanna Desai <prssud@gmail.com>
version-14
Mohammad Hasnain Mohsin Rajan 4 years ago
committed by GitHub
parent
commit
e42873647f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/public/js/frappe/form/controls/base_control.js

+ 1
- 1
frappe/public/js/frappe/form/controls/base_control.js View File

@@ -74,7 +74,7 @@ frappe.ui.form.Control = Class.extend({
frappe.model.get_doc(this.doctype, this.docname), this.perm || (this.frm && this.frm.perm), explain);

// Match parent grid controls read only status
if (status === 'Write' && (this.grid || (this.layout && this.layout.grid) && !this.df.allow_on_submit)) {
if (status === 'Write' && (this.grid || (this.layout && this.layout.grid) && !cint(this.df.allow_on_submit))) {
var grid = this.grid || this.layout.grid;
if (grid.display_status == 'Read') {
status = 'Read';


Loading…
Cancel
Save