浏览代码

[patch] [fix]

version-14
Rushabh Mehta 9 年前
父节点
当前提交
f01394fb62
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/core/doctype/communication/comment.py

+ 1
- 1
frappe/core/doctype/communication/comment.py 查看文件

@@ -139,7 +139,7 @@ def update_comments_in_parent(reference_doctype, reference_name, _comments):
"%s", "%s"), (json.dumps(_comments), reference_name))

except Exception, e:
if e.args[0] == 1054 and getattr(frappe.local, 'request'):
if e.args[0] == 1054 and getattr(frappe.local, 'request', None):
# missing column and in request, add column and update after commit
frappe.local._comments = (getattr(frappe.local, "_comments", [])
+ [(reference_doctype, reference_name, _comments)])


正在加载...
取消
保存