rez_core 4.0.234 → 4.0.235
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.
package/package.json
CHANGED
|
@@ -124,14 +124,20 @@ export class EntityJSONService extends EntityServiceImpl {
|
|
|
124
124
|
if (attr.flat_json_key) result[attr.flat_json_key] = null;
|
|
125
125
|
});
|
|
126
126
|
linkedAttributes.forEach((link) => {
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
// Use target_attribute_key instead of applicable_attribute_key
|
|
128
|
+
if (link.target_attribute_key) result[link.target_attribute_key] = null;
|
|
129
129
|
});
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
|
|
131
|
+
if(flag === 'all') {
|
|
132
|
+
return {
|
|
133
|
+
flat_json: result,
|
|
134
|
+
attributes: { mainAttributes, relatedAttributes, linkedAttributes }
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
return result;
|
|
134
139
|
}
|
|
140
|
+
|
|
135
141
|
|
|
136
142
|
const dropdown: any[] = [];
|
|
137
143
|
dropdown.push(
|