fix(dialog): clear message before show incase the dialog is being reused

This commit is contained in:
Rushabh Mehta 2019-02-20 11:13:49 +05:30
parent 550e601186
commit 78c3a5de2d

View file

@ -152,6 +152,10 @@ frappe.ui.Dialog = class Dialog extends frappe.ui.FieldGroup {
this.$wrapper.removeClass('fade');
}
this.$wrapper.modal("show");
// clear any message
this.clear_message();
this.primary_action_fulfilled = false;
this.is_visible = true;
return this;