Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GLPI
glpi
Commits
54071a0e
Commit
54071a0e
authored
May 17, 2021
by
Cédric Anne
Committed by
Johan Cwiklinski
May 17, 2021
Browse files
Deprecate unused code
parent
7cb5ac17
Changes
6
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
54071a0e
...
...
@@ -9,7 +9,9 @@ The present file will list all changes made to the project; according to the
#### Deprecated
-
Usage of "followups" option in
`CommonITILObject::showShort()`
-
`CommonITILTask::showInObjectSumnary()`
-
`ITILFollowup::showShortForITILObject()`
## [9.5.5] 2021-04-13
...
...
inc/change_ticket.class.php
View file @
54071a0e
...
...
@@ -310,10 +310,14 @@ class Change_Ticket extends CommonDBRelation{
$i
=
0
;
foreach
(
$tickets
as
$data
)
{
Session
::
addToNavigateListItems
(
'Ticket'
,
$data
[
"id"
]);
Ticket
::
showShort
(
$data
[
'id'
],
[
'followups'
=>
false
,
'row_num'
=>
$i
,
'type_for_massiveaction'
=>
__CLASS__
,
'id_for_massiveaction'
=>
$data
[
'linkid'
]]);
Ticket
::
showShort
(
$data
[
'id'
],
[
'row_num'
=>
$i
,
'type_for_massiveaction'
=>
__CLASS__
,
'id_for_massiveaction'
=>
$data
[
'linkid'
]
]
);
$i
++
;
}
Ticket
::
commonListHeader
(
Search
::
HTML_OUTPUT
,
'mass'
.
__CLASS__
.
$rand
);
...
...
inc/commonitilobject.class.php
View file @
54071a0e
...
...
@@ -6040,6 +6040,8 @@ abstract class CommonITILObject extends CommonDBTM {
* type_for_massiveaction : itemtype for massive action
* id_for_massaction : default 0 means no massive action
* followups : show followup columns
*
* @since 9.5.6 Usage of "followups" option is deprecated
*/
static
function
showShort
(
$id
,
$options
=
[])
{
global
$DB
;
...
...
@@ -6058,6 +6060,10 @@ abstract class CommonITILObject extends CommonDBTM {
}
}
if
(
$p
[
'followups'
])
{
Toolbox
::
deprecated
(
'Usage of "followups" option is deprecated.'
);
}
$rand
=
mt_rand
();
/// TODO to be cleaned. Get datas and clean display links
...
...
inc/itilfollowup.class.php
View file @
54071a0e
...
...
@@ -1012,8 +1012,11 @@ JAVASCRIPT;
/**
* @param $ID integer ID of the ITILObject
* @param $itemtype string parent itemtype
*
* @deprecated 9.5.6
**/
static
function
showShortForITILObject
(
$ID
,
$itemtype
)
{
Toolbox
::
deprecated
();
global
$DB
,
$CFG_GLPI
;
...
...
inc/problem_ticket.class.php
View file @
54071a0e
...
...
@@ -336,10 +336,14 @@ class Problem_Ticket extends CommonDBRelation{
$i
=
0
;
foreach
(
$tickets
as
$data
)
{
Session
::
addToNavigateListItems
(
'Ticket'
,
$data
[
"id"
]);
Ticket
::
showShort
(
$data
[
'id'
],
[
'followups'
=>
false
,
'row_num'
=>
$i
,
'type_for_massiveaction'
=>
__CLASS__
,
'id_for_massiveaction'
=>
$data
[
'linkid'
]]);
Ticket
::
showShort
(
$data
[
'id'
],
[
'row_num'
=>
$i
,
'type_for_massiveaction'
=>
__CLASS__
,
'id_for_massiveaction'
=>
$data
[
'linkid'
]
]
);
$i
++
;
}
Ticket
::
commonListHeader
(
Search
::
HTML_OUTPUT
,
'mass'
.
__CLASS__
.
$rand
);
...
...
inc/projecttask_ticket.class.php
View file @
54071a0e
...
...
@@ -219,10 +219,14 @@ class ProjectTask_Ticket extends CommonDBRelation{
$i
=
0
;
foreach
(
$tickets
as
$data
)
{
Session
::
addToNavigateListItems
(
'Ticket'
,
$data
[
"id"
]);
Ticket
::
showShort
(
$data
[
'id'
],
[
'followups'
=>
false
,
'row_num'
=>
$i
,
'type_for_massiveaction'
=>
__CLASS__
,
'id_for_massiveaction'
=>
$data
[
'linkid'
]]);
Ticket
::
showShort
(
$data
[
'id'
],
[
'row_num'
=>
$i
,
'type_for_massiveaction'
=>
__CLASS__
,
'id_for_massiveaction'
=>
$data
[
'linkid'
]
]
);
$i
++
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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