mbauskar 8 years ago
committed by Nabin Hait
parent
commit
2ecf45b258
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/core/doctype/file/file.js

+ 1
- 1
frappe/core/doctype/file/file.js View File

@@ -23,7 +23,7 @@ frappe.ui.form.on("File", "refresh", function(frm) {
wrapper.empty();
}

if(frm.doc.file_name.split('.').splice(-1)[0]==='zip') {
if(frm.doc.file_name && frm.doc.file_name.split('.').splice(-1)[0]==='zip') {
frm.add_custom_button(__('Unzip'), function() {
frappe.call({
method: "frappe.core.doctype.file.file.unzip_file",


Loading…
Cancel
Save