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
61d8dde4
Commit
61d8dde4
authored
10 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
oops: Fix ticket listing by users
parent
a2bcfcf3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/staff/templates/tickets.tmpl.php
+2
-2
2 additions, 2 deletions
include/staff/templates/tickets.tmpl.php
with
2 additions
and
2 deletions
include/staff/templates/tickets.tmpl.php
+
2
−
2
View file @
61d8dde4
...
@@ -6,7 +6,7 @@ $select ='SELECT ticket.ticket_id,ticket.`number`,ticket.dept_id,ticket.staff_id
...
@@ -6,7 +6,7 @@ $select ='SELECT ticket.ticket_id,ticket.`number`,ticket.dept_id,ticket.staff_id
.
' ,CONCAT_WS(" ", staff.firstname, staff.lastname) as staff, team.name as team '
.
' ,CONCAT_WS(" ", staff.firstname, staff.lastname) as staff, team.name as team '
.
' ,IF(staff.staff_id IS NULL,team.name,CONCAT_WS(" ", staff.lastname, staff.firstname)) as assigned '
.
' ,IF(staff.staff_id IS NULL,team.name,CONCAT_WS(" ", staff.lastname, staff.firstname)) as assigned '
.
' ,IF(ptopic.topic_pid IS NULL, topic.topic, CONCAT_WS(" / ", ptopic.topic, topic.topic)) as helptopic '
.
' ,IF(ptopic.topic_pid IS NULL, topic.topic, CONCAT_WS(" / ", ptopic.topic, topic.topic)) as helptopic '
.
' ,cdata.priority_id, cdata.subject, user.name, email.address as email'
;
.
' ,cdata.priority
as priority
_id, cdata.subject, user.name, email.address as email'
;
$from
=
' FROM '
.
TICKET_TABLE
.
' ticket '
$from
=
' FROM '
.
TICKET_TABLE
.
' ticket '
.
' LEFT JOIN '
.
TICKET_STATUS_TABLE
.
' status
.
' LEFT JOIN '
.
TICKET_STATUS_TABLE
.
' status
...
@@ -20,7 +20,7 @@ $from =' FROM '.TICKET_TABLE.' ticket '
...
@@ -20,7 +20,7 @@ $from =' FROM '.TICKET_TABLE.' ticket '
.
' LEFT JOIN '
.
TOPIC_TABLE
.
' topic ON (ticket.topic_id=topic.topic_id) '
.
' LEFT JOIN '
.
TOPIC_TABLE
.
' topic ON (ticket.topic_id=topic.topic_id) '
.
' LEFT JOIN '
.
TOPIC_TABLE
.
' ptopic ON (ptopic.topic_id=topic.topic_pid) '
.
' LEFT JOIN '
.
TOPIC_TABLE
.
' ptopic ON (ptopic.topic_id=topic.topic_pid) '
.
' LEFT JOIN '
.
TABLE_PREFIX
.
'ticket__cdata cdata ON (cdata.ticket_id = ticket.ticket_id) '
.
' LEFT JOIN '
.
TABLE_PREFIX
.
'ticket__cdata cdata ON (cdata.ticket_id = ticket.ticket_id) '
.
' LEFT JOIN '
.
PRIORITY_TABLE
.
' pri ON (pri.priority_id = cdata.priority
_id
)'
;
.
' LEFT JOIN '
.
PRIORITY_TABLE
.
' pri ON (pri.priority_id = cdata.priority)'
;
if
(
$user
)
if
(
$user
)
$where
=
'WHERE ticket.user_id = '
.
db_input
(
$user
->
getId
());
$where
=
'WHERE ticket.user_id = '
.
db_input
(
$user
->
getId
());
...
...
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