diff --git a/frappe/__version__.py b/frappe/__version__.py index 16b7fe8596..6800025a9e 100644 --- a/frappe/__version__.py +++ b/frappe/__version__.py @@ -1,2 +1,2 @@ from __future__ import unicode_literals -__version__ = "4.13.2" +__version__ = "4.13.3" diff --git a/frappe/core/doctype/comment/comment.py b/frappe/core/doctype/comment/comment.py index 95d27618ef..e17b1d18df 100644 --- a/frappe/core/doctype/comment/comment.py +++ b/frappe/core/doctype/comment/comment.py @@ -60,6 +60,8 @@ class Comment(Document): raise def update_comments_in_parent(self, _comments): + if frappe.db.get_value("DocType", self.comment_doctype, "issingle"): + return # use sql, so that we do not mess with the timestamp frappe.db.sql("""update `tab%s` set `_comments`=%s where name=%s""" % (self.comment_doctype, "%s", "%s"), (json.dumps(_comments), self.comment_docname)) diff --git a/frappe/hooks.py b/frappe/hooks.py index a9ac1a9ddf..7efaea3270 100644 --- a/frappe/hooks.py +++ b/frappe/hooks.py @@ -4,7 +4,7 @@ app_title = "Frappe Framework" app_publisher = "Web Notes Technologies Pvt. Ltd." app_description = "Full Stack Web Application Framework in Python" app_icon = "assets/frappe/images/frappe.svg" -app_version = "4.13.2" +app_version = "4.13.3" app_color = "#3498db" app_email = "support@frappe.io" diff --git a/frappe/translate.py b/frappe/translate.py index bfa34d92bd..a0412a9b0b 100644 --- a/frappe/translate.py +++ b/frappe/translate.py @@ -138,7 +138,8 @@ def get_lang_js(fortype, name): def get_full_dict(lang): if lang == "en": return {} - return frappe.cache().get_value("lang:" + lang, lambda:load_lang(lang)) + translations = load_lang(lang) + return frappe.cache().get_value("lang:" + lang, lambda:translations) if translations else {} def load_lang(lang, apps=None): out = {} diff --git a/setup.py b/setup.py index cececb1e75..c64e13ff99 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages import os -version = "4.13.2" +version = "4.13.3" with open("requirements.txt", "r") as f: install_requires = f.readlines()