fixed issues with grid form and b.parent

This commit is contained in:
mdipierro
2012-09-30 08:32:03 -05:00
parent 672af73e96
commit 9ce1cde6ca
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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