You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-07-26 09:02:28

bmichelsz
Member
From: Slovakia
Registered: 2007-10-20
Posts: 37

Devices' power supplies

Dear all,
we would like to assign a power supplies as a components to devices, but from standard interface it is not possible.
Currently in our configuration only Computers, Enclosures, Network Devices and Phones are assignable.
Is there some configuration option or this behavior is hardcoded?
Thank you.


Debian 11, GLPI 10.0.6, OCS 2.3.1, MariaDB 10.5.18, Apache 2.4.52, PHP 7.4.33

Offline

#2 2022-07-26 22:53:00

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: Devices' power supplies

The behavior is hard-coded but the list of item types that can have power supplies is at least centralized in inc/define.php. Adding "Peripheral" to the array with the key "itemdevicepowersupply_types" should allow you to add power supplies to devices (internally named peripherals).


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2022-07-27 09:51:23

bmichelsz
Member
From: Slovakia
Registered: 2007-10-20
Posts: 37

Re: Devices' power supplies

Thank you very much for help.
Now, we are able to assign a power supply to device, although it is still not visible under the device detail in the components tab.

console glpi:cache:clear

was a magic command.
Maybe in future releases.
Now it works like a charm.

Last edited by bmichelsz (2022-07-27 10:45:36)


Debian 11, GLPI 10.0.6, OCS 2.3.1, MariaDB 10.5.18, Apache 2.4.52, PHP 7.4.33

Offline

Board footer

Powered by FluxBB