possible fix to address upload problem, thanks Marin

This commit is contained in:
mdipierro
2012-08-02 21:28:38 -05:00
parent 923857b957
commit 796c8ff979
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-08-02 10:17:12) dev
Version 2.00.0 (2012-08-02 21:28:32) dev
+1 -1
View File
@@ -1229,7 +1229,7 @@ class SQLFORM(FORM):
continue # do not update if password was not changed
elif field.type == 'upload':
f = self.vars[fieldname]
f = f or self.table[fieldname].default or f
f = f if not f in (None,'') else self.table[fieldname].default
fd = '%s__delete' % fieldname
if f == '' or f is None:
if self.vars.get(fd, False) or not self.record: