Unverified Commit 7cb87c2c authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(services) Fix service state when applying a template to a system

Because they do not show the activation header, services where marked as
 always active and this messed up template application on systems.

issue #6189
Showing with 4 additions and 0 deletions
+4 -0
...@@ -42,6 +42,10 @@ class simpleService extends simplePlugin ...@@ -42,6 +42,10 @@ class simpleService extends simplePlugin
{ {
/* $parent is the instance of servicesManagement in this case, we set it as parent */ /* $parent is the instance of servicesManagement in this case, we set it as parent */
parent::__construct($dn, $parent, $parent, FALSE, $attributesInfo); parent::__construct($dn, $parent, $parent, FALSE, $attributesInfo);
/* Services do not have the activation header, but can still be disabled */
$this->ignore_account = FALSE;
$plInfos = pluglist::pluginInfos(get_class($this)); $plInfos = pluglist::pluginInfos(get_class($this));
$this->DisplayName = $plInfos['plShortName']; $this->DisplayName = $plInfos['plShortName'];
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment