fixes in check if latest

This commit is contained in:
Anand Doshi 2013-03-06 15:55:20 +05:30
parent 5002200477
commit 3da7ae1aa2

View file

@ -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`