Laravel-datatables: Filter Error when serach by 00

Created on 1 Jun 2017  Â·  4Comments  Â·  Source: yajra/laravel-datatables

Hello Yajra,
In my table store Patient ID as 00001, 00002
when i type 00 its showing error
image

question

All 4 comments

Ajax error means the server error returned an error. Use your browser's dev tool/inspect element->network tab to see what the server error is.

Its working dfine, but only when i type 00 or 0 it showing this 500 error

http://localhost/hospital/report/patientlogData?draw=2&columns%5B0%5D%5Bdat…10&search%5Bvalue%5D=0&search%5Bregex%5D=false&doctor_id=1&_=1496377081418 500 (Internal Server

@praveenpatel95 If you are using FilterColumn method then the $keyword = $request->get('search')['value']) will always return false when you enter 0 or 00. To solve the issue change the condition:

if (($keyword = $request->get('search')['value']) || $request->get('search')['value'] == 0){}

Thank you so much mansouralex , its working fine

Was this page helpful?
0 / 5 - 0 ratings