@xuda.io/xuda-datasource-db-adapter-module 1.0.125 → 1.0.127
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.mjs +4 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -293,12 +293,12 @@ export const find_fieldId_in_index = function (SESSION_ID, dataSourceSession, fi
|
|
|
293
293
|
var v = _ds.v;
|
|
294
294
|
var ret;
|
|
295
295
|
|
|
296
|
-
|
|
296
|
+
for (const [key, val] of Object.entries(v.viewIndex)) {
|
|
297
297
|
if (val.data[0] === fieldId) {
|
|
298
298
|
ret = key;
|
|
299
|
-
|
|
299
|
+
break;
|
|
300
300
|
}
|
|
301
|
-
}
|
|
301
|
+
}
|
|
302
302
|
return ret;
|
|
303
303
|
};
|
|
304
304
|
|
|
@@ -323,7 +323,7 @@ export const dataset_save_before_exit = async function (SESSION_ID, dataSourceSe
|
|
|
323
323
|
if (exit_event_count) {
|
|
324
324
|
await _this.func.datasource.execute_view_events(SESSION_ID, dataSourceSession, 'on_exit');
|
|
325
325
|
|
|
326
|
-
if (v?.screenInfo?.properties?.menuType === 'set_data' &&
|
|
326
|
+
if (v?.screenInfo?.properties?.menuType === 'set_data' && v.jsonP.rows.length) {
|
|
327
327
|
return await _this.func.db.save_data(SESSION_ID, dataSourceSession);
|
|
328
328
|
}
|
|
329
329
|
}
|