Ver Fonte

[Bugfix] Fix for #4518: SQL query that generates the report list in the admin view needs to include the 'id' field

David Gabriel há 1 ano atrás
pai
commit
480394f3d8
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Http/Controllers/Admin/AdminReportController.php

+ 1 - 1
app/Http/Controllers/Admin/AdminReportController.php

@@ -643,7 +643,7 @@ trait AdminReportController
 				$q->whereNull('admin_seen') :
 				$q->whereNotNull('admin_seen');
 			})
-			->groupBy(['object_id', 'object_type'])
+			->groupBy(['id', 'object_id', 'object_type'])
 			->cursorPaginate(6)
 			->withQueryString()
 		);