浏览代码

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

version-14
Anand Doshi 12 年前
父节点
当前提交
e6f486fbff
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      webnotes/model/doc.py

+ 2
- 2
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():


正在加载...
取消
保存