working
This commit is contained in:
@@ -677,9 +677,10 @@ class AdminController extends AbstractController
|
|||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[Route('/watchdog', name: 'watchdog')]
|
#[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}', name: 'watchdog_type')]
|
||||||
#[Route('/watchdog/{type}/{action}', name: 'watchdog_type_action')]
|
#[Route('/watchdog/{type}/{action}', name: 'watchdog_type_action')]
|
||||||
public function watchdog(
|
public function watchdog(
|
||||||
@@ -690,10 +691,6 @@ class AdminController extends AbstractController
|
|||||||
string $action = null,
|
string $action = null,
|
||||||
int $id = null
|
int $id = null
|
||||||
): Response {
|
): Response {
|
||||||
/**
|
|
||||||
* @var LogEntryRepository $logEntryRepository
|
|
||||||
*/
|
|
||||||
$logEntryRepository = $EntityManagerInterface->getRepository('Gedmo\Loggable\Entity\LogEntry');
|
|
||||||
|
|
||||||
$qb = $EntityManagerInterface->createQueryBuilder();
|
$qb = $EntityManagerInterface->createQueryBuilder();
|
||||||
$qbButtons = $EntityManagerInterface->createQueryBuilder();
|
$qbButtons = $EntityManagerInterface->createQueryBuilder();
|
||||||
@@ -724,7 +721,7 @@ class AdminController extends AbstractController
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (null != $id) {
|
if (null != $id) {
|
||||||
$qb->where('l.objectId = :id');
|
$qb->andWhere('l.objectId = :id');
|
||||||
$qb->setParameter('id', $id);
|
$qb->setParameter('id', $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% if notype is not defined %}
|
{% if notype is not defined %}
|
||||||
<p>{{ i.objectClass }} (# {{ i.objectId }}) {% if is_granted('ROLE_ADMIN') %}<a href="{{ path('admin_watchdog_view', {'id': i.objectId}) }}" class="btn btn-warning btn-sm" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}tooltip_directory_history{% endtrans %} (Admin)"><i class="fas fa-clock"></i></a>{% endif %}</p>
|
<p>{{ i.objectClass }} (# {{ i.objectId }}) {% if is_granted('ROLE_ADMIN') %}<a href="{{ path('admin_watchdog_view', {'type':i.objectClass|replace({'App\\Entity\\': ''}), 'id': i.objectId}) }}" class="btn btn-warning btn-sm" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}tooltip_directory_history{% endtrans %} (Admin)"><i class="fas fa-clock"></i></a>{% endif %}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p>{{ ('title_data_' ~ i.action)|trans }}</p>
|
<p>{{ ('title_data_' ~ i.action)|trans }}</p>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
|
|||||||
Reference in New Issue
Block a user