diff --git a/frappe/__init__.py b/frappe/__init__.py index 29dc8886f0..b8745d25aa 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() diff --git a/frappe/public/js/legacy/client_script_helpers.js b/frappe/public/js/legacy/client_script_helpers.js index 212799704b..995c0c20e2 100644 --- a/frappe/public/js/legacy/client_script_helpers.js +++ b/frappe/public/js/legacy/client_script_helpers.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);