fix selectable breaking with custom formstyle
the recently added elif results in a 'function is not iterable' exception if you have a custom formstyle function
This commit is contained in:
1 parent
95709e582d
commit
aca4947927
1 file changed
+1
-1
+1
-1
@@ -3093,7 +3093,7 @@ class SQLFORM(FORM):
|
|||||||
if formstyle == 'bootstrap':
|
if formstyle == 'bootstrap':
|
||||||
# add space between buttons
|
# add space between buttons
|
||||||
htmltable = FORM(htmltable, DIV(_class='form-actions', *inputs))
|
htmltable = FORM(htmltable, DIV(_class='form-actions', *inputs))
|
||||||
elif 'bootstrap' in formstyle : # Same for bootstrap 3 & 4
|
elif not callable(formstyle) and 'bootstrap' in formstyle: # Same for bootstrap 3 & 4
|
||||||
htmltable = FORM(htmltable, DIV(_class='form-group web2py_table_selectable_actions', *inputs))
|
htmltable = FORM(htmltable, DIV(_class='form-group web2py_table_selectable_actions', *inputs))
|
||||||
else:
|
else:
|
||||||
htmltable = FORM(htmltable, *inputs)
|
htmltable = FORM(htmltable, *inputs)
|
||||||
|
|||||||
Reference in new issue
Block a user