First, I have to say this is by far the best select widget that I have used. Thank you for all of your hard work.

I have a select field that allows unlimited values and Chosen configured to auto apply on all multi-select fields. When the field has "Unlimited" values set, the field shows no options to choose from when clicking in the field.

However, on that same field, the moment I set it to 10 values, it works without problems.

Thanks in advance for any help.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NWOM’s picture

I also get the following error message on the node add page. Maybe it has something to do with the same problem:

Notice: Undefined index: #multiple in chosen_pre_render_select() (line 182 of C:\inetpub\wwwroot\sites\all\modules\chosen\chosen.module).

patrickroma’s picture

Same here...

patrickroma’s picture

Same here...

jdidelet’s picture

Status: Active » Needs review
FileSize
550 bytes

patch attached for error related to #multiple

jdidelet’s picture

attached new patch who resolve both problems.

Hydra’s picture

Status: Needs review » Fixed

Well I'm not very happy with this solution. In the near future there will be a whole lot of configurable options introduced by #2076813: Move library options (configuration) to library plugin.
Anyway, till this is going to happen, I'm happy with this quickfix. Thanks for sharing the patch!
Pushed to 7.x-2.x http://drupalcode.org/project/chosen.git/commit/5ff10ed

jdidelet’s picture

Ah yes sorry. I probably didn't do in the most efficient way because I'm not aware of all of this for chosen module. It was just a quick patch to resolve this blocking point because I myself use this module for my projects. Anyway, thanks for your work on this module. I'll try to be more careful next time I'll submit a patch (or just mention it's a quick dirty patch :)).

azovsky’s picture

Status: Fixed » Needs review
FileSize
2.14 KB

Fix from #5 breaks work of multi-selection (ability to select only one item) if on the page has other chosen fields.
So, here's my attempt to fix it in the patch.

NWOM’s picture

Like what azvosky said, the fix then broke my Organic Groups audience widget. After applying fix #8 on top of the already committed patch, both problems have now been fixed. Thank you very much jdidelet and azovsky!

attiks’s picture

Priority: Major » Critical
Status: Needs review » Reviewed & tested by the community

Thanks, bumping to critical

Hydra’s picture

Thanks for the fix azovsky and thanks for the review attiks! Pushed to 7.x-2.x http://drupalcode.org/project/chosen.git/commit/d431aa2

Hydra’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Typos corrected