Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Display FI SNMP tab even if no inventory has been performed (to set s…
Browse files Browse the repository at this point in the history
…nmp auth and inventory device without discovery (#2450)
  • Loading branch information
Walid Nouh committed Jan 24, 2018
1 parent 3c83c42 commit 35111d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions inc/networkequipment.class.php
Expand Up @@ -70,8 +70,7 @@ class PluginFusioninventoryNetworkEquipment extends CommonDBTM {
* @return string name of the tab
*/
function getTabNameForItem(CommonGLPI $item, $withtemplate=0) {
if ($this->canView()
&& PluginFusioninventoryToolbox::isAFusionInventoryDevice($item)) {
if ($this->canView()) {
return self::createTabEntry(__('FusionInventory SNMP', 'fusioninventory'));
}
return '';
Expand Down
3 changes: 1 addition & 2 deletions inc/printer.class.php
Expand Up @@ -91,8 +91,7 @@ static function getType() {
* @return string name of the tab
*/
function getTabNameForItem(CommonGLPI $item, $withtemplate=0) {
if ($this->canView()
&& PluginFusioninventoryToolbox::isAFusionInventoryDevice($item)) {
if ($this->canView()) {
return self::createTabEntry(__('FusionInventory SNMP', 'fusioninventory'));
}
return '';
Expand Down

0 comments on commit 35111d0

Please sign in to comment.