@yuneta/gobj-ui 7.23.62 → 7.23.63

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.
@@ -25348,7 +25348,7 @@ function transform__form_record_2_treedb_record(gobj, kw, operation) {
25348
25348
  let col = get_schema_col(gobj, field_name);
25349
25349
  if (!col) continue;
25350
25350
  const field_desc = (0, _yuneta_gobj_js.treedb_get_field_desc)(col);
25351
- if (!field_desc.is_writable && field_desc.type !== "fkey" && col.id !== pkey) continue;
25351
+ if (!field_desc.is_writable && field_desc.type !== "fkey" && !field_desc.is_file && col.id !== pkey) continue;
25352
25352
  let value = kw[field_name];
25353
25353
  row[field_name] = transform__form_value_2_treedb_value(gobj, col, value, operation);
25354
25354
  }
@@ -25343,7 +25343,7 @@ function transform__form_record_2_treedb_record(gobj, kw, operation) {
25343
25343
  let col = get_schema_col(gobj, field_name);
25344
25344
  if (!col) continue;
25345
25345
  const field_desc = treedb_get_field_desc(col);
25346
- if (!field_desc.is_writable && field_desc.type !== "fkey" && col.id !== pkey) continue;
25346
+ if (!field_desc.is_writable && field_desc.type !== "fkey" && !field_desc.is_file && col.id !== pkey) continue;
25347
25347
  let value = kw[field_name];
25348
25348
  row[field_name] = transform__form_value_2_treedb_value(gobj, col, value, operation);
25349
25349
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.23.62",
3
+ "version": "7.23.63",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -2620,7 +2620,14 @@ function transform__form_record_2_treedb_record(gobj, kw, operation)
2620
2620
  */
2621
2621
  const field_desc = treedb_get_field_desc(col);
2622
2622
  if(!field_desc.is_writable &&
2623
- field_desc.type !== "fkey" && col.id !== pkey) {
2623
+ field_desc.type !== "fkey" && !field_desc.is_file &&
2624
+ col.id !== pkey) {
2625
+ /* `is_file` and not the type: a `file` column IS an fkey (it
2626
+ * is flagged ['fkey','file']) but answers `type: "file"`, and
2627
+ * the write goes out with `autolink`, which rebuilds the links
2628
+ * from what the record carries. Dropped here, a read-only
2629
+ * `file` column -- the one only a load fills -- was UNLINKED
2630
+ * by every save of any other field of its record. */
2624
2631
  continue;
2625
2632
  }
2626
2633