@@ -652,6 +652,10 @@ def records_changed(self, column: str = None, recursive=True) -> bool:
652
652
dirty = False
653
653
# First check the current record to see if it's dirty
654
654
for mapped in self .frm .element_map :
655
+ # skip mapped items with no column
656
+ if mapped .column is None :
657
+ continue
658
+
655
659
# Compare the DB version to the GUI version
656
660
if mapped .table == self .table :
657
661
# if passed custom column name
@@ -1220,6 +1224,10 @@ def save_record(self, display_message: bool = True, update_elements: bool = True
1220
1224
1221
1225
# Propagate GUI data back to the stored current_row
1222
1226
for mapped in self .frm .element_map :
1227
+ # skip mapped items with no column
1228
+ if mapped .column is None :
1229
+ continue
1230
+
1223
1231
if mapped .dataset == self :
1224
1232
1225
1233
# convert the data into the correct data type using the domain in ColumnInfo
@@ -2380,15 +2388,17 @@ def update_elements(self, target_data_key: str = None, edit_protect_only: bool =
2380
2388
# Render GUI Elements
2381
2389
# d= dictionary (the element map dictionary)
2382
2390
for mapped in self .element_map :
2391
+ # if a column-less element is added
2392
+ if mapped .column is None :
2393
+ continue
2394
+
2383
2395
# If the optional target_data_key parameter was passed, we will only update elements bound to that table
2384
2396
if target_data_key is not None :
2385
2397
if mapped .table != self [target_data_key ].table :
2386
2398
continue
2387
2399
2388
2400
# skip updating this element if requested
2389
2401
if mapped .element in omit_elements : continue
2390
- # if a column-less element is added
2391
- if mapped .column is None : continue
2392
2402
2393
2403
# Show the Required Record marker if the column has notnull set and this is a virtual row
2394
2404
marker_key = mapped .element .key + ':marker'
0 commit comments