Merge pull request #13809 from shariquerik/new-doc-error-fix

fix: new-doc-2 not found error while duplicating record.
This commit is contained in:
mergify[bot] 2021-07-30 03:16:40 +00:00 committed by GitHub
commit ffc9415c27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,7 +204,7 @@ frappe.ui.form.Dashboard = class FormDashboard {
$(this).removeClass('hidden');
}
});
this.set_open_count();
!this.frm.is_new() && this.set_open_count();
}
init_data() {