Skip to content

Commit

Permalink
feat(glpiselectfield): support for new passive DC equipment
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jun 18, 2020
1 parent bc4befe commit 41e59c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/fields/glpiselectfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public function getDesignSpecializationField() {
Entity::class => Entity::getTypeName(2),
Profile::class => Profile::getTypeName(2)],
];
if (class_exists(PassiveDCEquipment::class)) {
// Does not exists in GLPI 9.4
$optgroup['Assets'][PassiveDCEquipment::class] = PassiveDCEquipment::getTypeName(2);
}
$plugin = new Plugin();
if ($plugin->isActivated('appliances')) {
$optgroup[__("Assets")][PluginAppliancesAppliance::class] = PluginAppliancesAppliance::getTypeName(2);
Expand Down

0 comments on commit 41e59c1

Please sign in to comment.