@saltcorn/server 0.7.0-beta.5 → 0.7.0
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 +7 -7
- package/public/saltcorn.js +7 -4
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/server",
|
|
3
|
-
"version": "0.7.0
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Server app for Saltcorn, open-source no-code platform",
|
|
5
5
|
"homepage": "https://saltcorn.com",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@saltcorn/base-plugin": "0.7.0
|
|
10
|
-
"@saltcorn/builder": "0.7.0
|
|
11
|
-
"@saltcorn/data": "0.7.0
|
|
12
|
-
"@saltcorn/admin-models": "0.7.0
|
|
13
|
-
"@saltcorn/markup": "0.7.0
|
|
14
|
-
"@saltcorn/sbadmin2": "0.7.0
|
|
9
|
+
"@saltcorn/base-plugin": "0.7.0",
|
|
10
|
+
"@saltcorn/builder": "0.7.0",
|
|
11
|
+
"@saltcorn/data": "0.7.0",
|
|
12
|
+
"@saltcorn/admin-models": "0.7.0",
|
|
13
|
+
"@saltcorn/markup": "0.7.0",
|
|
14
|
+
"@saltcorn/sbadmin2": "0.7.0",
|
|
15
15
|
"@socket.io/cluster-adapter": "^0.1.0",
|
|
16
16
|
"@socket.io/sticky": "^1.0.1",
|
|
17
17
|
"aws-sdk": "^2.1037.0",
|
package/public/saltcorn.js
CHANGED
|
@@ -767,15 +767,18 @@ async function fill_formula_btn_click(btn, k) {
|
|
|
767
767
|
);
|
|
768
768
|
const rec = get_form_record($(btn), true);
|
|
769
769
|
const rec_ids = get_form_record($(btn));
|
|
770
|
+
|
|
770
771
|
for (const fv of free_vars) {
|
|
771
772
|
if (fv.includes(".")) {
|
|
772
773
|
const kpath = fv.split(".");
|
|
773
774
|
const [refNm, targetNm] = kpath;
|
|
774
775
|
const reffield = table.fields.find((f) => f.name === refNm);
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
776
|
+
if (reffield && reffield.reftable_name) {
|
|
777
|
+
const resp = await $.ajax(
|
|
778
|
+
`/api/${reffield.reftable_name}?id=${rec_ids[refNm]}`
|
|
779
|
+
);
|
|
780
|
+
rec[refNm] = resp.success[0];
|
|
781
|
+
}
|
|
779
782
|
}
|
|
780
783
|
}
|
|
781
784
|
const val = new Function(
|