fix: wrap desc in DictObject for attribute access in subtable2toolbar

This commit is contained in:
yumoqing 2026-05-29 19:47:43 +08:00
parent 057ca605c1
commit 3a865e89a2

View File

@ -97,7 +97,7 @@ def subtable2toolbar(desc):
def build_crud_ui(crud_data: dict, dbdesc: dict):
uidir = crud_data.output_dir
tables = [ k for k in dbdesc.keys() ]
desc = dbdesc[crud_data.tblname].copy()
desc = DictObject(**dbdesc[crud_data.tblname].copy())
desc.update(crud_data.params.copy())
subtable2toolbar(desc)
binds = desc.binds or []