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:
|
if readonly and not ignore_rw and not field.readable:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if record:
|
if record and fieldname not in [x.name for x in extra_fields]:
|
||||||
default = record[fieldname]
|
default = record[fieldname]
|
||||||
else:
|
else:
|
||||||
default = field.default
|
default = field.default
|
||||||
|
|||||||
Reference in New Issue
Block a user