fixed issues with grid form and b.parent
This commit is contained in:
+1
-1
@@ -1150,7 +1150,7 @@ class SQLFORM(FORM):
|
||||
else:
|
||||
table = formstyle(self, xfields)
|
||||
for id,a,b,c in xfields:
|
||||
self.field_parent[id] = b.parent
|
||||
self.field_parent[id] = getattr(b,'parent',None)
|
||||
else:
|
||||
raise RuntimeError, 'formstyle not supported'
|
||||
return table
|
||||
|
||||
Reference in New Issue
Block a user