default can't be true
after set `opts.is_private` false, is private still true.
This commit is contained in:
parent
43f4485c54
commit
aa6f9b1b24
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue