Ver código fonte

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 anos atrás
committed by GitHub
pai
commit
e42873647f
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      frappe/public/js/frappe/form/controls/base_control.js

+ 1
- 1
frappe/public/js/frappe/form/controls/base_control.js Ver arquivo

@@ -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); frappe.model.get_doc(this.doctype, this.docname), this.perm || (this.frm && this.frm.perm), explain);


// Match parent grid controls read only status // 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; var grid = this.grid || this.layout.grid;
if (grid.display_status == 'Read') { if (grid.display_status == 'Read') {
status = 'Read'; status = 'Read';


Carregando…
Cancelar
Salvar