From 32f35d278f9ef3ab3a4a1ad1c19d93cf95e1acc8 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 7 Dec 2017 11:51:37 +0530 Subject: [PATCH 1/2] [Fix] Make new button(+) not working for chinese language (#4581) --- frappe/public/js/legacy/clientscriptAPI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/legacy/clientscriptAPI.js b/frappe/public/js/legacy/clientscriptAPI.js index c4032760c7..3d217fd41a 100644 --- a/frappe/public/js/legacy/clientscriptAPI.js +++ b/frappe/public/js/legacy/clientscriptAPI.js @@ -482,7 +482,7 @@ _f.Frm.prototype.make_new = function(doctype) { if(this.make_methods && this.make_methods[doctype]) { return this.make_methods[doctype](this); } else if(this.custom_make_buttons && this.custom_make_buttons[doctype]) { - this.custom_buttons[this.custom_make_buttons[doctype]].trigger('click'); + this.custom_buttons[__(this.custom_make_buttons[doctype])].trigger('click'); } else { frappe.model.with_doctype(doctype, function() { var new_doc = frappe.model.get_new_doc(doctype); From 7909f9a08cdd0ee9c9d6bc1be45f740210138d94 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 7 Dec 2017 12:24:13 +0600 Subject: [PATCH 2/2] bumped to version 9.2.22 --- frappe/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/__init__.py b/frappe/__init__.py index 7cf02edd10..edadfe4c74 100644 --- a/frappe/__init__.py +++ b/frappe/__init__.py @@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json from .exceptions import * from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template -__version__ = '9.2.21' +__version__ = '9.2.22' __title__ = "Frappe Framework" local = Local()