phalcon-datatables
phalcon-datatables copied to clipboard
Bugfix: search bypasses conditions
$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.