mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-28 15:57:05 +00:00
fix: skip activities fetch on unsaved CRM doc
(cherry picked from commit87052020fb) (cherry picked from commitede9f11500)
This commit is contained in:
@@ -6,6 +6,10 @@ erpnext.utils.CRMActivities = class CRMActivities {
|
||||
refresh() {
|
||||
var me = this;
|
||||
$(this.open_activities_wrapper).empty();
|
||||
|
||||
// an unsaved doc has no activities and its temp name can't be permission-checked
|
||||
if (this.frm.is_new()) return;
|
||||
|
||||
let cur_form_footer = this.form_wrapper.find(".form-footer");
|
||||
|
||||
// all activities
|
||||
|
||||
Reference in New Issue
Block a user