Fixed bug regarding setting of banner

This commit is contained in:
Anand Doshi 2011-12-14 16:09:59 +05:30
parent 8875d91a8e
commit ed73fb2b26

View File

@ -14,7 +14,8 @@ class DocType:
# on update
#
def validate(self):
if self.doc.file_list and self.doc.set_from_attachment:
from webnotes.utils import cint
if self.doc.file_list and cint(self.doc.set_from_attachment):
self.set_html_from_image()
# update control panel - so it loads new letter directly