fixes #2271, sqlhtml changing dict, thanks macneiln

This commit is contained in:
mdipierro
2020-03-21 12:11:46 -07:00
parent 1ed5117200
commit 6aff6e1132
+1 -1
View File
@@ -1330,7 +1330,7 @@ class SQLFORM(FORM):
# - user not trying to upload a new file
# - there is existing file and user is not trying to delete it
# this is because removing the file may not pass validation
for key in self.errors.keys():
for key in list(self.errors):
if key in self.table \
and self.table[key].type == 'upload' \
and request_vars.get(key, None) in (None, '') \