Commit f19a66c5 by Alfiro Pratama

Fix $status condition

parent 6473563d
......@@ -98,8 +98,8 @@ class DaftarProposalController extends Controller
->when($tahun != "0", function($query) use ($tahun){
return $query->where('periode', $tahun);
})
->when(!is_null($status), function($query) use ($status){
return $query->where('status_final', $status);
->when($status != "0", function($query) use ($status){
return $query->where('status', $status);
})
->when($jenis != "0", function($query) use ($jenis){
return $query->where('jenis_id', $jenis);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment