From 9f604c0be4b560f9d60fcb7f69dcc193631ed873 Mon Sep 17 00:00:00 2001 From: Kirill Uksusov Date: Wed, 20 May 2020 13:52:18 +0400 Subject: [PATCH] https://github.com/UksusoFF/webtrees-reminder/issues/5 --- src/Http/Controllers/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/AdminController.php b/src/Http/Controllers/AdminController.php index 9d7dda1..3c1aa5f 100644 --- a/src/Http/Controllers/AdminController.php +++ b/src/Http/Controllers/AdminController.php @@ -107,7 +107,7 @@ private function data(Request $request): Response ); return response([ - 'draw' => $request->getAttribute('draw'), + 'draw' => $request->getQueryParams()['draw'] ?? '1', 'recordsTotal' => $total, 'recordsFiltered' => $total, 'data' => $rows->map(function($row) {