Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the products plug for redmine v4.1 raise a error #14

Open
tomora opened this issue May 18, 2020 · 1 comment
Open

the products plug for redmine v4.1 raise a error #14

tomora opened this issue May 18, 2020 · 1 comment

Comments

@tomora
Copy link

tomora commented May 18, 2020

select2.js?1560995188:848 Uncaught Error: Option 'ajax' is not allowed for Select2 when attached to a <select> element. at String.<anonymous> (select2.js?1560995188:848) at Function.each (jquery-1.11.1-ui-1.11.0-ujs-4.3.1.js?1560171196:2) at constructor.prepareOpts (select2.js?1560995188:846) at constructor.prepareOpts (select2.js?1560995188:2390) at constructor.init (select2.js?1560995188:660) at HTMLSelectElement.<anonymous> (select2.js?1560995188:3147) at Function.each (jquery-1.11.1-ui-1.11.0-ujs-4.3.1.js?1560171196:2) at m.fn.init.each (jquery-1.11.1-ui-1.11.0-ujs-4.3.1.js?1560171196:2) at m.fn.init.$.fn.select2 (select2.js?1560995188:3134) at HTMLDocument.<anonymous> (select2_helpers.js?1560994378:121)

when run to the following code(URL is projects/test/products/new):
if (select) { // these options are not allowed when attached to a select because they are picked up off the element itself $.each(["id", "multiple", "ajax", "query", "createSearchChoice", "initSelection", "data", "tags"], function () { if (this in opts) { throw new Error("Option '" + this + "' is not allowed for Select2 when attached to a <select> element."); } }); }

Can you help me? It's a my mistake on the configure of remine or a bug of this plug?

Thank you.

@sf-cola
Copy link
Owner

sf-cola commented May 23, 2020

Probably select2/select2#679
I thought it was the same as this issue.
It may be a little more detailed if you can tell me from which screen of Redmine it is operated.
@tomora

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants