2020-08-30, 20:09:56
github link https://github.com/fusioninventory/fusio...ssues/3017
Нow i fixed for myself in file hook.php line 2381:
replace with:
Н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;
}
}
}