Ver código fonte

default can't be true

after set `opts.is_private` false, is private still true.
version-14
gshmu 7 anos atrás
committed by GitHub
pai
commit
aa6f9b1b24
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      frappe/public/js/frappe/upload.js

+ 1
- 1
frappe/public/js/frappe/upload.js Ver arquivo

@@ -53,7 +53,7 @@ frappe.upload = {
$uploaded_files_wrapper.removeClass('hidden').empty();

file_array = file_array.map(
file => Object.assign(file, {is_private: opts.is_private || 1})
file => Object.assign(file, {is_private: opts.is_private || 0})
)
$upload.data('attached_files', file_array);



Carregando…
Cancelar
Salvar