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
d111c802
Commit
d111c802
authored
May 02, 2019
by
Cédric Anne
Committed by
Johan Cwiklinski
May 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix filtering of used items in tickets items
parent
833d184d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
inc/item_ticket.class.php
inc/item_ticket.class.php
+1
-8
No files found.
inc/item_ticket.class.php
View file @
d111c802
...
...
@@ -411,14 +411,7 @@ class Item_Ticket extends CommonDBRelation{
self
::
dropdownMyDevices
(
$dev_user_id
,
$ticket
->
fields
[
"entities_id"
],
null
,
0
,
[
'tickets_id'
=>
$instID
]);
}
$data
=
array_keys
(
getAllDatasFromTable
(
'glpi_items_tickets'
));
$used
=
[];
if
(
!
empty
(
$data
))
{
foreach
(
$data
as
$val
)
{
$used
[
$val
[
'itemtype'
]]
=
$val
[
'id'
];
}
}
$used
=
self
::
getUsedItems
(
$instID
);
self
::
dropdownAllDevices
(
"itemtype"
,
null
,
0
,
1
,
$dev_user_id
,
$ticket
->
fields
[
"entities_id"
],
[
'tickets_id'
=>
$instID
,
'used'
=>
$used
,
'rand'
=>
$rand
]);
echo
"<span id='item_ticket_selection_information
$rand
'></span>"
;
echo
"</td><td class='center' width='30%'>"
;
...
...
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