IcingaService: Fix getOnDeleteUrl() for service sets

So that it redirects back to services of this serviceset.
This commit is contained in:
Markus Frosch 2019-02-06 13:10:00 +01:00
parent b9c5f94589
commit d2c00c5d39

View File

@ -596,6 +596,8 @@ class IcingaService extends IcingaObject implements ExportInterface
{
if ($this->get('host_id')) {
return 'director/host/services?name=' . rawurlencode($this->get('host'));
} elseif ($this->get('service_set_id')) {
return 'director/serviceset/services?name=' . rawurlencode($this->get('service_set'));
} else {
return parent::getOnDeleteUrl();
}