1

Resolved

Multiple=false on MediaLibraryPickerField is not multiple=false

description

When choosing media for a MediaLibraryPickerField, the Multiple property is not honored properly.
I can still use CTRL to select multiple items.

It does hide the add button when there are 1 or more media items selected. But thats not enough, obviously.

comments

sebastienros wrote Mar 17 at 10:33 PM

1.x or 1.7x

sebastienros wrote Mar 22 at 1:12 AM

I can't repro it on 1.x, I can add multiple items, and do it several times as I still see the add button.
Did you mean on 1.7.x ?

** Closed by sebastienros 03/21/2014 5:12PM

sebastienros wrote Mar 22 at 1:13 AM

Can't repro it on 1.x. Did you mean 1.7.x ?

hkui wrote Mar 22 at 1:40 AM

You have to uncheck multiple. This means you should be able to select maximum of 1 media item.

Choose one. Add button disappears. That's good.
Remove it. Add button shows again. That's good.
Choose more than one with the ctrl button. You've now selected multiple while multiple was not allowed.

sebastienros wrote Mar 22 at 2:06 AM

Reopening then

sebastienros wrote Mar 24 at 10:19 PM

Fixed in changeset dd648f346964cba84d57e449172d326276bff579

sebastienros wrote Mar 24 at 10:19 PM

Fixed in changeset dd73289c532fa6566512f2ac54f38a244ffc1c08