Skip to content

EspoCRM – Open Source CRM Application

field view: fromField handling

Yuri Kuznetsov162e05449c2c
diff --git a/client/src/views/fields/base.js b/client/src/views/fields/base.js
index 619887de25..241b33853e 100644
--- a/client/src/views/fields/base.js
+++ b/client/src/views/fields/base.js
@@ -875,7 +875,7 @@ class BaseFieldView extends View {
this.attributeList = this.getAttributeList(); // for backward compatibility, to be removed
this.listenTo(this.model, 'change', (model, options) => {
- if (options.ui) {
+ if (options.ui && (!options.fromField || options.fromField === this.name)) {
return;
}
@@ -950,6 +950,7 @@ class BaseFieldView extends View {
this.model.set(attributes, {
ui: true,
fromView: this,
+ fromField: this.name,
action: 'ui',
});
});