From 853a9adf776e04c89544b03c7368c1217f3abd2e Mon Sep 17 00:00:00 2001 From: Tomahock Date: Mon, 18 Dec 2023 17:56:23 +0000 Subject: [PATCH] fix last commit --- app/Http/Controllers/IncidentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/IncidentController.php b/app/Http/Controllers/IncidentController.php index bce96b2..be72d1e 100644 --- a/app/Http/Controllers/IncidentController.php +++ b/app/Http/Controllers/IncidentController.php @@ -361,7 +361,7 @@ public function search(IncidentSearchRequest $request): JsonResponse })->when($isFMA, function ($query, $isFMA){ return $query->isFMA(); })->when($naturezaCode, function ($query, $naturezaCode){ - return $query->where('naturezaCode', $naturezaCode); + return $query->where('naturezaCode', (string)$naturezaCode); }) ->paginate($limit);