Describe the bug
On the Service Browser (/#!/services/browser/id) the SLA Button is not shown, when a SLA is defined via the Host Template.
To Reproduce
Steps to reproduce the behavior:
Create a Host via Hosttemplate that has a SLA associated
Create a Service and goto the browser.
You don't get the SLA button (ng-show="slaOverview")
Expected behavior
Display the SLA Button
Versions
openITCOCKPIT Server Version: 4.7.0
Additional context
When a Host SLA is defined via hosttemplate, the sla_id field remains null in the host.
In the ServicesController.php public function loadSlaInformation() it is only checked if the host has an sla_id defined ( $hostSlaId = $host['Host']['sla_id']; ).
When it is null, a second check needs to be done to get the sla_id via the hosttemplate.
Describe the bug On the Service Browser (/#!/services/browser/id) the SLA Button is not shown, when a SLA is defined via the Host Template.
To Reproduce Steps to reproduce the behavior:
Expected behavior Display the SLA Button
Versions
Additional context When a Host SLA is defined via hosttemplate, the
sla_id
field remainsnull
in the host. In the ServicesController.php public function loadSlaInformation() it is only checked if the host has ansla_id
defined ($hostSlaId = $host['Host']['sla_id'];
). When it is null, a second check needs to be done to get thesla_id
via the hosttemplate.