diff --git a/webnotes/model/doc.py b/webnotes/model/doc.py index c59ada5c6b..6c964d48c3 100755 --- a/webnotes/model/doc.py +++ b/webnotes/model/doc.py @@ -282,8 +282,8 @@ class Document: %(modified_by)s)""", self.fields) def _update_single(self, link_list): - update_str = ["(%s, 'modified', %s)",] - values = [self.doctype, now()] + self.modified = now() + update_str, values = [], [] webnotes.conn.sql("delete from tabSingles where doctype='%s'" % self.doctype) for f in self.fields.keys():