fix: remove duplicate supplier_id in new_data_url; JSON config is the correct fix, not dspy workaround

This commit is contained in:
yumoqing 2026-07-03 16:09:30 +08:00
parent 698f0f6e29
commit 724a912bc9
2 changed files with 1 additions and 6 deletions

View File

@ -78,7 +78,7 @@
"updated_at"
],
"editable": {
"new_data_url": "{{entire_url('../api/supply_contracts_create.dspy')}}?supplier_id={{params_kw.get('supplier_id','')}}",
"new_data_url": "{{entire_url('../api/supply_contracts_create.dspy')}}",
"update_data_url": "{{entire_url('../api/supply_contracts_update.dspy')}}",
"delete_data_url": "{{entire_url('../api/supply_contracts_delete.dspy')}}"
},

View File

@ -3,11 +3,6 @@ ns = params_kw.copy()
for k,v in ns.items():
if v == 'NaN' or v == 'null':
ns[k] = None
# Fix list values (bricks may send arrays from code lookups)
for k in list(ns.keys()):
v = ns[k]
if isinstance(v, list) and len(v) > 0:
ns[k] = v[0]
id = params_kw.id
if not id or len(id) > 32:
id = getID()