Description of the bug
In the console:
Uncaught TypeError: can't access property "browser", Backdrop.settings.file is undefined
Steps To Reproduce
- Go to node/add/post
- Click on image toolbar button
- Inspect the console log
Actual behavior
There's no field setting to check for cardinality in WYSIWYG, hence the nagging.
Upload does work.
Expected behavior
No nagging
Additional information
- Backdrop CMS version: latest dev
- Browser(s) and their versions: FF, probably also Chrome
- Any WYSIWYG editor (CKE, Tiny...)
Introduced by Issue #440: Support "Multiple" attribute on file uploads.
In core/modules/file/js/file.js:
var fieldCardinality = parseInt(Backdrop.settings.file.browser.fieldCardinality);
Editors don't have "field cardinality settings". Their d&d upload is always sort of "multiple" (one by one), in the dialog the cardinality should be 1.
We probably only need some check there.
Description of the bug
In the console:
Steps To Reproduce
Actual behavior
There's no field setting to check for cardinality in WYSIWYG, hence the nagging.
Upload does work.
Expected behavior
No nagging
Additional information
Introduced by Issue #440: Support "Multiple" attribute on file uploads.
In core/modules/file/js/file.js:
Editors don't have "field cardinality settings". Their d&d upload is always sort of "multiple" (one by one), in the dialog the cardinality should be
1.We probably only need some check there.