possible fix to address upload problem, thanks Marin
This commit is contained in:
@@ -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
@@ -1229,7 +1229,7 @@ class SQLFORM(FORM):
|
|||||||
continue # do not update if password was not changed
|
continue # do not update if password was not changed
|
||||||
elif field.type == 'upload':
|
elif field.type == 'upload':
|
||||||
f = self.vars[fieldname]
|
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
|
fd = '%s__delete' % fieldname
|
||||||
if f == '' or f is None:
|
if f == '' or f is None:
|
||||||
if self.vars.get(fd, False) or not self.record:
|
if self.vars.get(fd, False) or not self.record:
|
||||||
|
|||||||
Reference in New Issue
Block a user