[translations] fixes #4533

This commit is contained in:
Rushabh Mehta
2016-01-04 15:57:01 +05:30
parent eb961370ff
commit 5760b79747
7 changed files with 18 additions and 16 deletions

View File

@@ -5,12 +5,12 @@ frappe.ui.form.on("Issue", {
"refresh": function(frm) {
if(frm.doc.status==="Open") {
frm.add_custom_button("Close", function() {
frm.add_custom_button(__("Close"), function() {
frm.set_value("status", "Closed");
frm.save();
});
} else {
frm.add_custom_button("Reopen", function() {
frm.add_custom_button(__("Reopen"), function() {
frm.set_value("status", "Open");
frm.save();
});