From ed73fb2b26fa45d894e1383c267c4b09a836d7c1 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 14 Dec 2011 16:09:59 +0530 Subject: [PATCH] Fixed bug regarding setting of banner --- erpnext/setup/doctype/personalize/personalize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/setup/doctype/personalize/personalize.py b/erpnext/setup/doctype/personalize/personalize.py index 3264546337..dc9ad66fd4 100644 --- a/erpnext/setup/doctype/personalize/personalize.py +++ b/erpnext/setup/doctype/personalize/personalize.py @@ -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