[fix] [minor] update modified of single-type doc

This commit is contained in:
Anand Doshi 2013-08-02 12:37:12 +05:30
parent c7857829d8
commit e6f486fbff

View file

@ -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():