fixed optional formatting of empty list:string
This commit is contained in:
1 parent
97b70eff9f
commit
178f94af8c
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1073,7 +1073,7 @@ class SQLFORM(FORM):
|
||||
cond = readonly or \
|
||||
(not ignore_rw and not field.writable and field.readable)
|
||||
|
||||
if default and not cond:
|
||||
if default is not None and not cond:
|
||||
default = field.formatter(default)
|
||||
dspval = default
|
||||
inpval = default
|
||||
|
||||
Reference in new issue
Block a user