working
This commit is contained in:
@@ -677,9 +677,10 @@ class AdminController extends AbstractController
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
||||
#[Route('/watchdog', name: 'watchdog')]
|
||||
#[Route('/watchdog/view/{id}', name: 'watchdog_view')]
|
||||
#[Route('/watchdog/view/{type}/{id}/{action}', name: 'watchdog_view')]
|
||||
#[Route('/watchdog/{type}', name: 'watchdog_type')]
|
||||
#[Route('/watchdog/{type}/{action}', name: 'watchdog_type_action')]
|
||||
public function watchdog(
|
||||
@@ -690,10 +691,6 @@ class AdminController extends AbstractController
|
||||
string $action = null,
|
||||
int $id = null
|
||||
): Response {
|
||||
/**
|
||||
* @var LogEntryRepository $logEntryRepository
|
||||
*/
|
||||
$logEntryRepository = $EntityManagerInterface->getRepository('Gedmo\Loggable\Entity\LogEntry');
|
||||
|
||||
$qb = $EntityManagerInterface->createQueryBuilder();
|
||||
$qbButtons = $EntityManagerInterface->createQueryBuilder();
|
||||
@@ -724,7 +721,7 @@ class AdminController extends AbstractController
|
||||
}
|
||||
|
||||
if (null != $id) {
|
||||
$qb->where('l.objectId = :id');
|
||||
$qb->andWhere('l.objectId = :id');
|
||||
$qb->setParameter('id', $id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user