From a7026613173f605c27fece7f06db5a6c8d13418d Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 20 Mar 2015 15:12:34 +0530 Subject: [PATCH 1/3] Fix: Comment in single doctype --- frappe/core/doctype/comment/comment.py | 2 ++ 1 file changed, 2 insertions(+) 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)) From 3cbc296f4dd3e34eb3344a9927d56e78c1a39db0 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 20 Mar 2015 15:26:48 +0530 Subject: [PATCH 2/3] fix for translations --- frappe/translate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = {} From d95023d11d15887b7a31ee06245b7a2881282814 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Fri, 20 Mar 2015 17:56:09 +0600 Subject: [PATCH 3/3] bumped to version 4.13.3 --- frappe/__version__.py | 2 +- frappe/hooks.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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/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/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()