@iapps/ng-dhis2-ui 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15506,7 +15506,10 @@ class ProgramEntryFormModule {
|
|
|
15506
15506
|
}
|
|
15507
15507
|
#updateInstanceWithAutoAssignedValues(autoAssignedValues) {
|
|
15508
15508
|
const trackedEntityId = this.trackedEntity?.();
|
|
15509
|
-
if (
|
|
15509
|
+
if (
|
|
15510
|
+
// Event forms also receive a trackedEntity ID checking the ID alone prevented their auto-assigned fields from being populated since its passed even in creation of the events.
|
|
15511
|
+
this.config().formType === 'TRACKER' &&
|
|
15512
|
+
typeof trackedEntityId === 'string' &&
|
|
15510
15513
|
trackedEntityId.trim().length > 0) {
|
|
15511
15514
|
return;
|
|
15512
15515
|
}
|