diff --git a/templates/element/actions.php b/templates/element/actions.php index 5f1d425..5751101 100644 --- a/templates/element/actions.php +++ b/templates/element/actions.php @@ -25,6 +25,7 @@ if ($config['method'] !== 'GET') { $linkOptions += [ 'method' => $config['method'], + 'block' => 'action_link_forms', ]; } @@ -33,6 +34,11 @@ unset($config['callback']); $config['options'] = $linkOptions; $links[$name] = $callback($config, !empty($singularVar) ? $singularVar : null, $this); + + if ($links[$name]['method'] !== 'GET' && !isset($links[$name]['options']['block'])) { + $links[$name]['options']['block'] = 'action_link_forms'; + } + continue; }