Proposed fix for issue 2315
This commit is contained in:
+1
-1
@@ -1501,7 +1501,7 @@ class SQLFORM(FORM):
|
||||
if readonly and not ignore_rw and not field.readable:
|
||||
continue
|
||||
|
||||
if record:
|
||||
if record and fieldname not in [x.name for x in extra_fields]:
|
||||
default = record[fieldname]
|
||||
else:
|
||||
default = field.default
|
||||
|
||||
Reference in New Issue
Block a user