Unverified Commit fba1f569 authored by Curtis Conard's avatar Curtis Conard Committed by GitHub
Browse files

Network ports on Monitors (#7310)

* Add network ports on Monitors

* Update changelog
parent 5da39e28
...@@ -22,6 +22,7 @@ The present file will list all changes made to the project; according to the ...@@ -22,6 +22,7 @@ The present file will list all changes made to the project; according to the
- Ability to copy tasks while merging tickets - Ability to copy tasks while merging tickets
- the API gives the ID of the user who logs in with initSession - the API gives the ID of the user who logs in with initSession
- Kanban view for projects - Kanban view for projects
- Network ports on Monitors
### Changed ### Changed
......
...@@ -271,7 +271,7 @@ $CFG_GLPI["dictionnary_types"] = ['ComputerModel', 'ComputerType', 'M ...@@ -271,7 +271,7 @@ $CFG_GLPI["dictionnary_types"] = ['ComputerModel', 'ComputerType', 'M
$CFG_GLPI["helpdesk_visible_types"] = ['Software', 'Appliance', 'Item_DeviceSimcard']; $CFG_GLPI["helpdesk_visible_types"] = ['Software', 'Appliance', 'Item_DeviceSimcard'];
$CFG_GLPI["networkport_types"] = ['Computer', 'NetworkEquipment', 'Peripheral', $CFG_GLPI["networkport_types"] = ['Computer', 'Monitor', 'NetworkEquipment', 'Peripheral',
'Phone', 'Printer', 'Enclosure', 'PDU', 'Cluster']; 'Phone', 'Printer', 'Enclosure', 'PDU', 'Cluster'];
// Warning : the order is used for displaying different NetworkPort types ! Keep it ! // Warning : the order is used for displaying different NetworkPort types ! Keep it !
......
...@@ -42,7 +42,7 @@ class Monitor extends CommonDBTM { ...@@ -42,7 +42,7 @@ class Monitor extends CommonDBTM {
// From CommonDBTM // From CommonDBTM
public $dohistory = true; public $dohistory = true;
static protected $forward_entity_to = ['Infocom', 'ReservationItem', 'Item_OperatingSystem']; static protected $forward_entity_to = ['Infocom', 'ReservationItem', 'Item_OperatingSystem', 'NetworkPort'];
static $rightname = 'monitor'; static $rightname = 'monitor';
protected $usenotepad = true; protected $usenotepad = true;
...@@ -79,6 +79,7 @@ class Monitor extends CommonDBTM { ...@@ -79,6 +79,7 @@ class Monitor extends CommonDBTM {
$this->addStandardTab('Item_OperatingSystem', $ong, $options); $this->addStandardTab('Item_OperatingSystem', $ong, $options);
$this->addStandardTab('Item_Devices', $ong, $options); $this->addStandardTab('Item_Devices', $ong, $options);
$this->addStandardTab('Computer_Item', $ong, $options); $this->addStandardTab('Computer_Item', $ong, $options);
$this->addStandardTab('NetworkPort', $ong, $options);
$this->addStandardTab('Infocom', $ong, $options); $this->addStandardTab('Infocom', $ong, $options);
$this->addStandardTab('Contract_Item', $ong, $options); $this->addStandardTab('Contract_Item', $ong, $options);
$this->addStandardTab('Document_Item', $ong, $options); $this->addStandardTab('Document_Item', $ong, $options);
......
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