• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
License is displayed for devices with the same ID [9.5.0+1.0] - maybe a bug
#1
github link https://github.com/fusioninventory/fusio...ssues/3017

Нow i fixed for myself in file hook.php line 2381:
Code:
function plugin_fusioninventory_preshowtab($params) {
   global $CFG_GLPI;

   if (isset($params['item']) && is_object($params['item'])) {
      $item = $params['item'];
      if (in_array($item->getType(), $CFG_GLPI['software_types'])) {
         switch (Session::getActiveTab($item->getType())) {
            case 'Item_SoftwareVersion$1':
               $license = new PluginFusioninventoryComputerLicenseInfo();
               $license->showForm($item->getID());
               break;
         }
      }
   }
}

 replace with:

Code:
function plugin_fusioninventory_preshowtab($params) {
   global $CFG_GLPI;

   if (isset($params['item']) && is_object($params['item'])) {
      $item = $params['item'];
      switch ($item->getType()) {
         case 'Computer':
            switch (Session::getActiveTab($item->getType())) {
               case 'Item_SoftwareVersion$1':
                  $license = new PluginFusioninventoryComputerLicenseInfo();
                  $license->showForm($item->getID());
                  break;
            }
            break;
      }
   }
}
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)