fixed issue 1786 with row_is in sqlhtml, thanks simonm3

This commit is contained in:
Massimo Di Pierro
2012-02-09 11:15:42 -06:00
parent c6380e5601
commit 4228350d19
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.4 (2012-02-09 11:11:08) stable Version 1.99.4 (2012-02-09 11:15:33) stable
+3 -3
View File
@@ -1783,9 +1783,9 @@ class SQLFORM(FORM):
classtr = 'odd' classtr = 'odd'
numrec+=1 numrec+=1
id = row[field_id] id = row[field_id]
if row_id: if id:
rid = row_id rid = id
if callable(rid): if callable(rid): ### can this ever be callable?
rid = rid(row) rid = rid(row)
tr = TR(_id=rid, _class='%s %s' % (classtr, 'with_id')) tr = TR(_id=rid, _class='%s %s' % (classtr, 'with_id'))
else: else: