ImportSourceCoreApi: allow to import user groups

fixes #11511
This commit is contained in:
Thomas Gelf 2016-08-24 14:15:40 +00:00
parent cb59c61d66
commit b8b047a1e4
2 changed files with 9 additions and 1 deletions

View File

@ -413,7 +413,14 @@ constants
public function getHostGroupObjects()
{
return $this->getDirectorObjects('HostGroup', 'HostGroup', 'hostgroups', array(
'display_name' => 'display_name',
'display_name' => 'display_name',
));
}
public function getUserGroupObjects()
{
return $this->getDirectorObjects('UserGroup', 'UserGroup', 'usergroups', array(
'display_name' => 'display_name',
));
}

View File

@ -62,6 +62,7 @@ class ImportSourceCoreApi extends ImportSourceHook
'Host' => $form->translate('Hosts'),
'HostGroup' => $form->translate('Hostgroups'),
'User' => $form->translate('Users'),
'UserGroup' => $form->translate('Usergroups'),
'Zone' => $form->translate('Zones'),
);