Przeglądaj źródła

Merge pull request #782 from pdvyas/hotfix-filemanager-19aug

[minor] fix unbound local var in file_manager
version-14
Nabin Hait 11 lat temu
rodzic
commit
2be8f347bf
1 zmienionych plików z 1 dodań i 0 usunięć
  1. +1
    -0
      frappe/utils/file_manager.py

+ 1
- 0
frappe/utils/file_manager.py Wyświetl plik

@@ -182,6 +182,7 @@ def remove_all(dt, dn):

def remove_file(fid, attached_to_doctype=None, attached_to_name=None):
"""Remove file and File Data entry"""
file_name = None
if not (attached_to_doctype and attached_to_name):
attached = frappe.db.get_value("File Data", fid,
["attached_to_doctype", "attached_to_name", "file_name"])


Ładowanie…
Anuluj
Zapisz