fixed bug in orderby when it is a list
This commit is contained in:
+1
-1
@@ -2071,7 +2071,7 @@ class SQLFORM(FORM):
|
|||||||
if not orderby:
|
if not orderby:
|
||||||
orderby = field_id
|
orderby = field_id
|
||||||
elif isinstance(orderby, list):
|
elif isinstance(orderby, list):
|
||||||
orderby = map(lambda a,b: a|b, orderby)
|
orderby = reduce(lambda a,b: a|b, orderby)
|
||||||
elif isinstance(orderby, Field) and orderby is not field_id:
|
elif isinstance(orderby, Field) and orderby is not field_id:
|
||||||
# here we're with an ASC order on a field stored as orderby
|
# here we're with an ASC order on a field stored as orderby
|
||||||
orderby = orderby | field_id
|
orderby = orderby | field_id
|
||||||
|
|||||||
Reference in New Issue
Block a user