fix event triggering bug, needs to be regex/similar

This commit is contained in:
Dennis Eichhorn 2020-10-25 23:07:07 +01:00
parent 7ba929b175
commit 4862346d3f
2 changed files with 4 additions and 4 deletions

View File

@ -1,13 +1,13 @@
<?php declare(strict_types=1);
return [
'POST:Module:.*?\-create' => [
'/POST:Module:.*?\-create/' => [
'callback' => ['\Modules\Auditor\Controller\ApiController:apiLogCreate'],
],
'POST:Module:.*?\-update' => [
'/POST:Module:.*?\-update/' => [
'callback' => ['\Modules\Auditor\Controller\ApiController:apiLogUpdate'],
],
'POST:Module:.*?\-delete' => [
'/POST:Module:.*?\-delete/' => [
'callback' => ['\Modules\Auditor\Controller\ApiController:apiLogDelete'],
],
];

View File

@ -70,7 +70,7 @@ echo $this->getData('nav')->render(); ?>
<td><?= $audit->getCreatedAt()->format('Y-m-d H:i'); ?>
<?php endforeach; ?>
<?php if ($count === 0) : ?>
<tr><td colspan="9" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<tr><td colspan="10" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<?php endif; ?>
</table>
<div class="portlet-foot">