Merge pull request #4741 from achillesrasquinha/dialog-fix

Fix #4719
This commit is contained in:
Prateeksha Singh 2018-01-02 19:55:24 +05:30 committed by GitHub
commit cac28c5cd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ frappe.ui.Dialog = frappe.ui.FieldGroup.extend({
// show footer
this.action = this.action || { primary: { }, secondary: { } };
if(this.primary_action || this.action.primary) {
if(this.primary_action || this.action.primary.label) {
this.set_primary_action(this.primary_action_label || this.action.primary.label || __("Submit"), this.primary_action || this.action.primary.click);
}