-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Description
I'm getting undefined offset when using search. I'm using 1.4 of your package and 1.11 of DT. The issue is that, i'm adding a 'operartions' column and datatables is sending that column back, but because i'm not selecting it your package doesn't know what column 3 is.
$products = Product::select(array('id', 'code2', 'name', 'quantity', 'shopifyId', 'code3', 'ebayId'));
return Datatables::of($products)
->add_column('operations', $buttons)
->remove_column('code3')
->remove_column('shopifyId')
->remove_column('ebayId')
->make();My bandaid solution was to remove the 4th column from the input array like so.
$request = Input::all();
unset($request['columns'][4]);
Input::merge($request);Not sure if there's a proper way of doing this?
thanks
Metadata
Metadata
Assignees
Labels
No labels