fix: restrict filetypes to csv for rename tool
This commit is contained in:
parent
b35b637d01
commit
c371b52d27
@ -13,6 +13,12 @@ frappe.ui.form.on("Rename Tool", {
|
||||
},
|
||||
refresh: function(frm) {
|
||||
frm.disable_save();
|
||||
|
||||
frm.get_field("file_to_rename").df.options = {
|
||||
restrictions: {
|
||||
allowed_file_types: [".csv"],
|
||||
},
|
||||
};
|
||||
if (!frm.doc.file_to_rename) {
|
||||
frm.get_field("rename_log").$wrapper.html("");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user