Yadcf with Select2 puts empty selected option -


first of all, lot amazing plugin! have datatable server-side processing. when choose 1 option dropdown, got 2 selected options: 1 choose, , empty. mean got this:

<ul class="select2-selection__rendered">   <li class="select2-selection__choice" title=""></li>   <li class="select2-selection__choice" title="option1"></li>   <li class="select2-search select2-search--inline"></li> </ul> 

it makes wrong sql query (in operator got '|option1'). can correct query php script, won't remove empty selected option header of table.

would appreciated help.

you welcome,

looks using multi select filter on column, , thats why yadcf sends strings | (or) server.

on server side have split of string array/list of string , construct proper sql query.

split in java

split in php(see code sample in bottom

p.s i'm author of yadcf


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -