mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-26 07:14:59 +02:00
syncrule/history: do not fetch activity if null
This commit is contained in:
parent
d435ca37f7
commit
05919baf5d
@ -162,6 +162,7 @@ class SyncruleController extends ActionController
|
|||||||
|
|
||||||
if ($runId = $this->params->get('run_id')) {
|
if ($runId = $this->params->get('run_id')) {
|
||||||
$this->view->run = SyncRun::load($runId, $db);
|
$this->view->run = SyncRun::load($runId, $db);
|
||||||
|
if ($this->view->run->last_former_activity !== null) {
|
||||||
$this->view->formerId = $db->fetchActivityLogIdByChecksum(
|
$this->view->formerId = $db->fetchActivityLogIdByChecksum(
|
||||||
$this->view->run->last_former_activity
|
$this->view->run->last_former_activity
|
||||||
);
|
);
|
||||||
@ -171,6 +172,7 @@ class SyncruleController extends ActionController
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected function prepareRuleTabs($ruleId = null)
|
protected function prepareRuleTabs($ruleId = null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user