Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
glpi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
GLPI
glpi
Commits
986bfb74
Commit
986bfb74
authored
Jan 13, 2021
by
AdrienClairembault
Committed by
Johan Cwiklinski
Jan 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert #8509
parent
b289b8e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
inc/commonglpi.class.php
inc/commonglpi.class.php
+0
-10
No files found.
inc/commonglpi.class.php
View file @
986bfb74
...
...
@@ -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'
]))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment