Skip to content

Commit

Permalink
EASE_LOGGER=syslog|console for jobs
Browse files Browse the repository at this point in the history
fixed default tab crash
  • Loading branch information
Vitexus committed Dec 15, 2024
1 parent 0288e23 commit 6f0c518
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/MultiFlexi/Env/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down
4 changes: 2 additions & 2 deletions src/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6f0c518

Please sign in to comment.