@xuda.io/xuda-worker-bundle-min 1.3.842 → 1.3.843
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/index.js +16 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2722,16 +2722,26 @@ func.datasource.execute = async function (
|
|
|
2722
2722
|
_ds.set_mode = "C";
|
|
2723
2723
|
_ds.record_not_found = true;
|
|
2724
2724
|
|
|
2725
|
-
|
|
2725
|
+
try {
|
|
2726
|
+
const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
2727
|
+
} catch (error) {
|
|
2726
2728
|
await func.datasource.render_fields_form(
|
|
2727
2729
|
SESSION_ID,
|
|
2728
2730
|
dataSourceSession,
|
|
2729
|
-
{ _ROWID: "newRecord" }
|
|
2730
|
-
// null,
|
|
2731
|
-
// false,
|
|
2732
|
-
// "newRecord"
|
|
2731
|
+
{ _ROWID: "newRecord" }
|
|
2733
2732
|
);
|
|
2734
2733
|
}
|
|
2734
|
+
|
|
2735
|
+
// if (_.isEmpty(_ds.data_feed.rows[glb.newRecord])) {
|
|
2736
|
+
// await func.datasource.render_fields_form(
|
|
2737
|
+
// SESSION_ID,
|
|
2738
|
+
// dataSourceSession,
|
|
2739
|
+
// { _ROWID: "newRecord" } // { id: "newRecord", value: {} },
|
|
2740
|
+
// // null,
|
|
2741
|
+
// // false,
|
|
2742
|
+
// // "newRecord"
|
|
2743
|
+
// );
|
|
2744
|
+
// }
|
|
2735
2745
|
var count = await func.datasource.get_field_init_count(
|
|
2736
2746
|
SESSION_ID,
|
|
2737
2747
|
dataSourceSession,
|
|
@@ -3210,7 +3220,7 @@ func.datasource.run_rows_form = async function (
|
|
|
3210
3220
|
SESSION_ID,
|
|
3211
3221
|
dataSourceSession,
|
|
3212
3222
|
"form",
|
|
3213
|
-
idx
|
|
3223
|
+
_ds.data_feed.rows[idx]._ROWID
|
|
3214
3224
|
);
|
|
3215
3225
|
}
|
|
3216
3226
|
// await form_continue();
|