fixed issue 1042, thanks Dominic

This commit is contained in:
Massimo
2012-09-28 12:47:36 -05:00
parent 2f44c2de9b
commit bd27df8fa5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.0.9 (2012-09-28 12:37:56) dev
Version 2.0.9 (2012-09-28 12:47:32) dev
+1 -1
View File
@@ -1142,7 +1142,7 @@ class SQLFORM(FORM):
table = TABLE()
for id,a,b,c in xfields:
newrows = formstyle(id,a,b,c)
self.field_parent[id] = b.parent
self.field_parent[id] = getattr(b,'parent',None)
if type(newrows).__name__ != "tuple":
newrows = [newrows]
for newrow in newrows: