@vgip/meta-ui 1.2.3 → 1.2.4
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.
|
@@ -4196,9 +4196,6 @@ class MetaResource {
|
|
|
4196
4196
|
if (!this.model) {
|
|
4197
4197
|
this.model = {};
|
|
4198
4198
|
}
|
|
4199
|
-
if (this.resource.ref && this.resource.ref.activity) { // reuse failed autoactivities data
|
|
4200
|
-
this.model = this.resource.ref.activity;
|
|
4201
|
-
}
|
|
4202
4199
|
if (this.resource.activity && this.resource.ref.editable === false && !this.resource.externalId) {
|
|
4203
4200
|
this.resource.externalId = 'MISSING_EXTERNAL_ID';
|
|
4204
4201
|
}
|
|
@@ -4314,6 +4311,13 @@ class MetaResource {
|
|
|
4314
4311
|
}
|
|
4315
4312
|
}
|
|
4316
4313
|
else {
|
|
4314
|
+
if (this.resource.ref && this.resource.ref.activity) { // reuse failed autoactivities data
|
|
4315
|
+
for (const p in this.resource.ref.activity) {
|
|
4316
|
+
if (this.resource.ref.activity && this.fieldNames.indexOf(p) !== -1) {
|
|
4317
|
+
this.model[p] = this.resource.ref.activity[p]; // VGIS-7215 (copy only valid fields)
|
|
4318
|
+
}
|
|
4319
|
+
}
|
|
4320
|
+
}
|
|
4317
4321
|
this.performAutoFill();
|
|
4318
4322
|
}
|
|
4319
4323
|
}
|