Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
30022d6d
Commit
30022d6d
authored
11 years ago
by
Peter Rotich
Browse files
Options
Downloads
Patches
Plain Diff
Add icon to indicate if a ticket has collaborators
parent
e760486f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/staff/tickets.inc.php
+16
-6
16 additions, 6 deletions
include/staff/tickets.inc.php
with
16 additions
and
6 deletions
include/staff/tickets.inc.php
+
16
−
6
View file @
30022d6d
...
...
@@ -265,11 +265,15 @@ while ($row = db_fetch_array($res)) {
// Fetch attachment and thread entry counts
if
(
$results
)
{
$counts_sql
=
'SELECT ticket.ticket_id, count(attach.attach_id) as attachments,
count(DISTINCT thread.id) as thread_count
$counts_sql
=
'SELECT ticket.ticket_id,
count(DISTINCT attach.attach_id) as attachments,
count(DISTINCT thread.id) as thread_count,
count(DISTINCT collab.id) as collaborators
FROM '
.
TICKET_TABLE
.
' ticket
LEFT JOIN '
.
TICKET_ATTACHMENT_TABLE
.
' attach ON (ticket.ticket_id=attach.ticket_id) '
.
' LEFT JOIN '
.
TICKET_THREAD_TABLE
.
' thread ON ( ticket.ticket_id=thread.ticket_id) '
.
' LEFT JOIN '
.
TICKET_COLLABORATOR_TABLE
.
' collab
ON ( ticket.ticket_id=collab.ticket_id) '
.
' WHERE ticket.ticket_id IN ('
.
implode
(
','
,
db_input
(
array_keys
(
$results
)))
.
')
GROUP BY ticket.ticket_id'
;
$ids_res
=
db_query
(
$counts_sql
);
...
...
@@ -404,11 +408,17 @@ if ($results) {
<a
class=
"Icon
<?php
echo
strtolower
(
$row
[
'source'
]);
?>
Ticket ticketPreview"
title=
"Preview Ticket"
href=
"tickets.php?id=
<?php
echo
$row
[
'ticket_id'
];
?>
"
>
<?php
echo
$tid
;
?>
</a></td>
<td
align=
"center"
nowrap
>
<?php
echo
Format
::
db_datetime
(
$row
[
'effective_date'
]);
?>
</td>
<td><a
<?php
if
(
$flag
)
{
?>
class=
"Icon
<?php
echo
$flag
;
?>
Ticket"
title=
"
<?php
echo
ucfirst
(
$flag
);
?>
Ticket"
<?php
}
?>
<td><a
<?php
if
(
$flag
)
{
?>
class=
"Icon
<?php
echo
$flag
;
?>
Ticket"
title=
"
<?php
echo
ucfirst
(
$flag
);
?>
Ticket"
<?php
}
?>
href=
"tickets.php?id=
<?php
echo
$row
[
'ticket_id'
];
?>
"
>
<?php
echo
$subject
;
?>
</a>
<?php
echo
(
$threadcount
>
1
)
?
" <small>(
$threadcount
)</small> "
:
''
?>
<?php
echo
$row
[
'attachments'
]
?
"<span class='Icon file'> </span>"
:
''
;
?>
<?php
if
(
$threadcount
>
1
)
echo
"<small>(
$threadcount
)</small> "
.
'<i
class="icon-fixed-width icon-comments-alt"></i> '
;
if
(
$row
[
'collaborators'
])
echo
'<i class="icon-fixed-width icon-group faded"></i> '
;
if
(
$row
[
'attachments'
])
echo
'<i class="icon-fixed-width icon-paperclip"></i> '
;
?>
</td>
<td
nowrap
>
<?php
echo
Format
::
truncate
(
$row
[
'name'
],
22
,
strpos
(
$row
[
'name'
],
'@'
));
?>
</td>
<?php
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment