EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
field: fromView set option
Yuri Kuznetsov88b0479366ba
diff --git a/client/src/views/fields/base.js b/client/src/views/fields/base.jsindex d63080d0dd..9b31495f52 100644--- a/client/src/views/fields/base.js+++ b/client/src/views/fields/base.js@@ -937,7 +937,10 @@ class BaseFieldView extends View {this.listenTo(this, 'change', () => {const attributes = this.fetch();- this.model.set(attributes, {ui: true});+ this.model.set(attributes, {+ ui: true,+ fromView: this,+ });});}}diff --git a/client/src/views/user/fields/avatar.js b/client/src/views/user/fields/avatar.jsindex 741efe8d63..5bb96fa318 100644--- a/client/src/views/user/fields/avatar.js+++ b/client/src/views/user/fields/avatar.js@@ -62,7 +62,7 @@ class UserAvatarFieldView extends ImageFieldView {syncModels();this.listenTo(this.model, 'change:avatarColor', (m, v, o) => {- if (!o.ui) {+ if (o.fromView !== this) {syncModels();}});