bootstrap-duallistbox icon indicating copy to clipboard operation
bootstrap-duallistbox copied to clipboard

Duplicate submitted data, moveOnSelect: false

Open josedager opened this issue 8 years ago • 2 comments

Hello,

If its configured the option moveOnSelect: false, it will duplicate the submitted data if exists any selected elements in the selected list.

For example, the selected list have 10 elements, but if you click 1,2,3...10 elements and select it, the submitted data will duplicate the values.

josedager avatar Mar 10 '16 15:03 josedager

The same with me. I'm using this object in Laravel 5.2.3. when fetching the array $request->input() it returns duplicated. e.g I select the option 3 and 5, the submitted value are option 3 ,5 , 3 and 5.

Forced to used the true value. However, I love the false feature and let my user to multiselect in the options.

By the way, Thank you very much on this its an awesome job to this.

aescasio avatar Jun 03 '16 03:06 aescasio

I solved it on PHP with array_unique($data) applies to all data sent by the plugin

josedager avatar Jul 06 '16 13:07 josedager