bugfix
This commit is contained in:
parent
5629a79c48
commit
c3e4211cc1
@ -203,11 +203,14 @@ class CRUDData(XLSXData):
|
||||
if 'codes' not in self.data.keys():
|
||||
return
|
||||
for f in self.data['codes']:
|
||||
r = self.check_field(f['field'])
|
||||
fname = f.get('field')
|
||||
if fname is None:
|
||||
break
|
||||
r = self.check_field(fname)
|
||||
if not r:
|
||||
raise CRUDException(
|
||||
self.xlsxfile,
|
||||
f'code definintion error({f["field"]})')
|
||||
f'code definintion error({fname})')
|
||||
|
||||
|
||||
def check_field(self, fieldname):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user