This commit is contained in:
Xbird
2022-09-15 16:20:26 +02:00
parent d82ec4bd25
commit 2c76f0fd89
2 changed files with 4 additions and 7 deletions

View File

@@ -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);
}