Commit 986bfb74 authored by AdrienClairembault's avatar AdrienClairembault Committed by Johan Cwiklinski

Revert #8509

parent b289b8e1
......@@ -1193,16 +1193,6 @@ class CommonGLPI {
function display($options = []) {
global $CFG_GLPI;
// Init active tab to main if not defined
if (!isset($_SESSION['glpi_tabs'][self::getType()])) {
// TODO: use array_key_first when php 7.3 is supported
$tabs = array_keys($this->defineAllTabs());
$first_tab = array_shift($tabs);
if ($first_tab) {
Session::setActiveTab(self::getType(), $first_tab);
}
}
if (isset($options['id'])
&& !$this->isNewID($options['id'])) {
if (!$this->getFromDB($options['id'])) {
......
Markdown is supported
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