diff --git a/src/MultiFlexi/Env/Logger.php b/src/MultiFlexi/Env/Logger.php index b5ad94d..a5c6380 100644 --- a/src/MultiFlexi/Env/Logger.php +++ b/src/MultiFlexi/Env/Logger.php @@ -37,6 +37,7 @@ public function getEnvironment(): array // If Zabbix action is enabled log only to syslog $actions = $this->engine->runTemplate->getPostActions(); $methods[] = 'syslog'; + $methods[] = 'console'; if (\array_key_exists('Zabbix', $actions)) { if (!($actions['Zabbix']['success'] || $actions['Zabbix']['fail'])) { diff --git a/src/actions.php b/src/actions.php index 7e830e3..f490ac8 100644 --- a/src/actions.php +++ b/src/actions.php @@ -53,8 +53,8 @@ $appPanel->headRow->addItem(new RuntemplateButton($runTemplater)); $actionsRow = new \Ease\TWB4\Tabs(); -$actionsRow->addTab(_('Success Actions'), new ActionsChooser('success', $app, $succesActions), $periodcalTaskInfo['success']); -$actionsRow->addTab(_('Fail Actions'), new ActionsChooser('fail', $app, $failActions), $periodcalTaskInfo['fail']); +$actionsRow->addTab(_('Success Actions'), new ActionsChooser('success', $app, $succesActions), (bool)$periodcalTaskInfo['success']); +$actionsRow->addTab(_('Fail Actions'), new ActionsChooser('fail', $app, $failActions), (bool)$periodcalTaskInfo['fail']); $appPanel->addItem($actionsRow); $jobtempform = new \Ease\TWB4\Form();