clear log if no attachments (#13023)
This commit is contained in:
parent
67f74414c4
commit
0bde9e11c7
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user