Skip to content

Commit c51bcdf

Browse files
committed
fix: gestione hooks da stato dei servizi
1 parent e84d1c0 commit c51bcdf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/stato_servizi/elenco-hooks.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
<tbody>';
5454

5555
foreach ($hooks as $hook) {
56-
$hook = Hook::find($hook['id']);
56+
$hook = Hook::where('id', '=', $hook['id'])->withoutGlobalScopes()->first();
57+
5758
$class = $hook->enabled ? 'success' : 'warning';
5859
$nome_tipo = 'hook';
5960

0 commit comments

Comments
 (0)