@saltcorn/data 0.9.6-beta.17 → 0.9.6-beta.18

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.
@@ -612,10 +612,10 @@ const transformForm = async ({ form, table, req, row, res, getRowQuery, viewname
612
612
  });
613
613
  if (row?.id) {
614
614
  const childRows = getRowQuery
615
- ? await getRowQuery(view.table_id, view_select, row.id, segment.owner_field)
615
+ ? await getRowQuery(view.table_id, view_select, row.id, segment.order_field)
616
616
  : await childTable.getRows({
617
617
  [view_select.field_name]: row.id,
618
- }, segment.owner_field ? { orderBy: segment.owner_field } : {});
618
+ }, segment.order_field ? { orderBy: segment.order_field } : {});
619
619
  fr.metadata.rows = childRows;
620
620
  if (!fr.fields.map((f) => f.name).includes(childTable.pk_name))
621
621
  fr.fields.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/data",
3
- "version": "0.9.6-beta.17",
3
+ "version": "0.9.6-beta.18",
4
4
  "description": "Data models for Saltcorn, open-source no-code platform",
5
5
  "homepage": "https://saltcorn.com",
6
6
  "scripts": {
@@ -37,15 +37,15 @@
37
37
  "!dist/tsconfig.ref.tsbuildinfo"
38
38
  ],
39
39
  "optionalDependencies": {
40
- "@saltcorn/postgres": "0.9.6-beta.17",
41
- "@saltcorn/sqlite": "0.9.6-beta.17"
40
+ "@saltcorn/postgres": "0.9.6-beta.18",
41
+ "@saltcorn/sqlite": "0.9.6-beta.18"
42
42
  },
43
43
  "dependencies": {
44
- "@saltcorn/types": "0.9.6-beta.17",
45
- "@saltcorn/markup": "0.9.6-beta.17",
46
- "@saltcorn/common-code": "0.9.6-beta.17",
47
- "@saltcorn/db-common": "0.9.6-beta.17",
48
- "@saltcorn/sqlite-mobile": "0.9.6-beta.17",
44
+ "@saltcorn/types": "0.9.6-beta.18",
45
+ "@saltcorn/markup": "0.9.6-beta.18",
46
+ "@saltcorn/common-code": "0.9.6-beta.18",
47
+ "@saltcorn/db-common": "0.9.6-beta.18",
48
+ "@saltcorn/sqlite-mobile": "0.9.6-beta.18",
49
49
  "acorn": "^8.0.3",
50
50
  "assert": "^2.0.0",
51
51
  "astring": "^1.4.3",