Merge branch 'master' of github.com:webnotes/wnframework

This commit is contained in:
Nabin Hait 2011-10-11 11:18:27 +05:30
commit b2bbadba5a

View file

@ -20,7 +20,9 @@ def upload():
fid, fname = save_uploaded()
# save it in the form
updated = add_file_list(dt, dn, fname, fid)
updated = False
if fid:
updated = add_file_list(dt, dn, fname, fid)
if fid and updated:
# refesh the form!