clear log if no attachments (#13023)

This commit is contained in:
Shreya Shah 2018-02-22 10:55:40 +05:30 committed by Nabin Hait
parent 67f74414c4
commit 0bde9e11c7

View File

@ -13,6 +13,9 @@ frappe.ui.form.on("Rename Tool", {
},
refresh: function(frm) {
frm.disable_save();
if (!frm.doc.file_to_rename) {
frm.get_field("rename_log").$wrapper.html("");
}
frm.page.set_primary_action(__("Rename"), function() {
frm.get_field("rename_log").$wrapper.html("<p>Renaming...</p>");
frappe.call({