Ver código fonte

Custom Attach field, user not able to attach file (#4274)

version-14
rohitwaghchaure 7 anos atrás
committed by Rushabh Mehta
pai
commit
60078d61a3
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

@@ -15,7 +15,7 @@ frappe.upload = {
// make private by default // make private by default
if (!("options" in opts) || ("options" in opts && if (!("options" in opts) || ("options" in opts &&
(!opts.options.toLowerCase()=="public" && !opts.options.toLowerCase()=="image"))) {
(opts.options && !opts.options.toLowerCase()=="public" && !opts.options.toLowerCase()=="image"))) {
opts.is_private = 1; opts.is_private = 1;
} }


Carregando…
Cancelar
Salvar