From a4d953feb8d477071c61b61a0eb7821c6fee5dcb Mon Sep 17 00:00:00 2001 From: tom Date: Mon, 28 Oct 2024 16:37:47 +1100 Subject: [PATCH] Fix #560 - removed equality check between fieldKey and name in return condition of addFieldDepedency() to allow addition of the field itself as a dependency --- core/app/core/src/lib/fields/base/base-field.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/app/core/src/lib/fields/base/base-field.component.ts b/core/app/core/src/lib/fields/base/base-field.component.ts index 094b1aef71..7fa2417904 100644 --- a/core/app/core/src/lib/fields/base/base-field.component.ts +++ b/core/app/core/src/lib/fields/base/base-field.component.ts @@ -207,7 +207,7 @@ export class BaseFieldComponent implements FieldComponentInterface, OnInit, OnDe protected addFieldDependency(fieldKey: string, dependentFields: ObjectMap, dependentAttributes: AttributeDependency[]): void { const field = this.record.fields[fieldKey]; const name = this.field.name || this.field.definition.name || ''; - if (fieldKey === name || !field) { + if (!field) { return; }