diff --git a/inc/inventory.class.php b/inc/inventory.class.php index 60070dc..8eaef69 100644 --- a/inc/inventory.class.php +++ b/inc/inventory.class.php @@ -235,7 +235,7 @@ function displayItemtypeInformation($id, $itemtype) { echo ""; State::dropdown(['value' => $item->fields["states_id"], 'entity' => $item->fields["entities_id"], - 'condition' => "`is_visible_computer`"]); + 'condition' => ['`is_visible_computer`', 1]]); echo "\n"; echo ""; diff --git a/setup.php b/setup.php index d891a7f..e7ef836 100644 --- a/setup.php +++ b/setup.php @@ -41,7 +41,7 @@ * */ -define ("PLUGIN_PHYSICALINV_VERSION", "9.4+1.0"); +define ("PLUGIN_PHYSICALINV_VERSION", "9.5+1.0"); include_once(GLPI_ROOT."/inc/includes.php"); @@ -85,7 +85,7 @@ function plugin_version_physicalinv() { 'author' => 'David DURIEUX & DCS company', 'homepage' => 'https://github.com/ddurieux/glpi_physicalinv', - 'minGlpiVersion' => '9.4' + 'minGlpiVersion' => '9.5' ]; } @@ -104,8 +104,8 @@ function plugin_physicalinv_check_prerequisites() { $_SESSION['glpi_plugins'] = []; } - if (version_compare(GLPI_VERSION, '9.4', 'lt') || version_compare(GLPI_VERSION, '9.5', 'ge')) { - echo __('Your GLPI version not compatible, require >= 9.4 and < 9.5', 'physicalinv'); + if (version_compare(GLPI_VERSION, '9.5', 'lt') || version_compare(GLPI_VERSION, '9.6', 'ge')) { + echo __('Your GLPI version not compatible, require >= 9.5 and < 9.6', 'physicalinv'); return FALSE; } return TRUE;