Commit 6b4b4ea
committed
[FIX] export_bg: Handle import_compat parameter correctly in background export
When import_compat=False, avoid using field 'value' for data extraction
to prevent issues when the exported data is used for record updates.
- In import_compat mode: use name -> value -> id fallback chain
- In regular export mode: use only name -> id (skip 'value')
- Field labels (headers) are handled appropriately for each mode
This ensures exported data maintains proper field references based on
the intended use case (import vs display/update).
closes #367
Signed-off-by: Franco Leyes <lef@adhoc.com.ar>1 parent 69042b2 commit 6b4b4ea
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
44 | 54 | | |
45 | 55 | | |
46 | 56 | | |
| |||
0 commit comments