bootstrap-duallistbox
bootstrap-duallistbox copied to clipboard
Duplicate submitted data, moveOnSelect: false
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.
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.
I solved it on PHP with array_unique($data)
applies to all data sent by the plugin