From 3da7ae1aa2d0811a86091edf366a624dd322af5f Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 6 Mar 2013 15:55:20 +0530 Subject: [PATCH] fixes in check if latest --- webnotes/model/bean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webnotes/model/bean.py b/webnotes/model/bean.py index fcc2b98c78..3bc1d3d031 100644 --- a/webnotes/model/bean.py +++ b/webnotes/model/bean.py @@ -114,7 +114,7 @@ class Bean: if not cint(self.doc.fields.get('__islocal')): if is_single(self.doc.doctype): modified = webnotes.conn.get_value(self.doc.doctype, self.doc.name, "modified") - if modified != str(self.doc.modified): + if str(modified) != str(self.doc.modified): conflict = True else: tmp = webnotes.conn.sql("""select modified, docstatus from `tab%s`