Skip to content

Commit

Permalink
feat(glpiselectfield): databases plugin support
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Apr 15, 2021
1 parent c01ae3d commit 1a42e8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/field/glpiselectfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
use Plugin;
use CommonTreeDropdown;
use PluginGenericobjectType;
use PluginDatabasesDatabase;

use GlpiPlugin\Formcreator\Exception\ComparisonException;

Expand Down Expand Up @@ -263,6 +264,9 @@ public function getObjects() {
if ((new Plugin())->isActivated('appliances')) {
$optgroup[__("Assets")][PluginAppliancesAppliance::class] = PluginAppliancesAppliance::getTypeName(2) . ' (' . _n('Plugin', 'Plugins', 1) . ')';
}
if ((new Plugin())->isActivated('databases')) {
$optgroup[__("Assets")][PluginDatabasesDatabase::class] = PluginDatabasesDatabase::getTypeName(2) . ' (' . _n('Plugin', 'Plugins', 1) . ')';
}

if ((new Plugin())->isActivated("genericobject")) {
$optgroup[__('Plugin') . " " . __('Objects management', 'genericobject')] = [];
Expand Down

0 comments on commit 1a42e8a

Please sign in to comment.