Merge pull request #1773 from Icinga/fix/serviceset-service-delete-redirect

IcingaService: Fix getOnDeleteUrl() for service sets
This commit is contained in:
Markus Frosch 2019-02-06 13:55:53 +01:00 committed by GitHub
commit 6d2028706e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
}