mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
fix: restrict filetypes to csv for rename tool
(cherry picked from commit c371b52d27)
This commit is contained in:
committed by
Ankush Menat
parent
a86e8f47e5
commit
d062504593
@@ -13,6 +13,12 @@ frappe.ui.form.on("Rename Tool", {
|
|||||||
},
|
},
|
||||||
refresh: function(frm) {
|
refresh: function(frm) {
|
||||||
frm.disable_save();
|
frm.disable_save();
|
||||||
|
|
||||||
|
frm.get_field("file_to_rename").df.options = {
|
||||||
|
restrictions: {
|
||||||
|
allowed_file_types: [".csv"],
|
||||||
|
},
|
||||||
|
};
|
||||||
if (!frm.doc.file_to_rename) {
|
if (!frm.doc.file_to_rename) {
|
||||||
frm.get_field("rename_log").$wrapper.html("");
|
frm.get_field("rename_log").$wrapper.html("");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user