phalcon-datatables icon indicating copy to clipboard operation
phalcon-datatables copied to clipboard

Bugfix: search bypasses conditions

Open Shay12tg opened this issue 8 years ago • 0 comments

$builder = $this->modelsManager->createBuilder() ->columns('id, name') ->from('Orders') ->where('client_id=' . $client_id); $dataTables = new DataTable(); $dataTables->fromBuilder($builder)->sendResponse();

This code should show orders by client id. however, when the client uses datatables's search, the results shows all clients orders that matches the search (bypassing my condition).

This commit should fix that.

Shay12tg avatar Jul 31 '16 10:07 Shay12tg