Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
30472267
Commit
30472267
authored
11 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
oops: Fix ambiguous columns and email flags
parent
e093f9c0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/api.tickets.php
+1
-0
1 addition, 0 deletions
include/api.tickets.php
include/staff/tickets.inc.php
+7
-7
7 additions, 7 deletions
include/staff/tickets.inc.php
with
8 additions
and
7 deletions
include/api.tickets.php
+
1
−
0
View file @
30472267
...
...
@@ -40,6 +40,7 @@ class TicketApiController extends ApiController {
$supported
=
array_merge
(
$supported
,
array
(
'header'
,
'mid'
,
'emailId'
,
'to-email-id'
,
'ticketId'
,
'reply-to'
,
'reply-to-name'
,
'in-reply-to'
,
'references'
,
'thread-type'
,
'flags'
=>
array
(
'bounce'
,
'auto-reply'
),
'recipients'
=>
array
(
'*'
=>
array
(
'name'
,
'email'
,
'source'
))
));
...
...
This diff is collapsed.
Click to expand it.
include/staff/tickets.inc.php
+
7
−
7
View file @
30472267
...
...
@@ -90,13 +90,13 @@ if($staffId && ($staffId==$thisstaff->getId())) { //My tickets
$qwhere
.
=
' AND ticket.staff_id='
.
db_input
(
$staffId
);
$showassigned
=
false
;
//My tickets...already assigned to the staff.
}
elseif
(
$showoverdue
)
{
//overdue
$qwhere
.
=
' AND isoverdue=1 '
;
$qwhere
.
=
' AND
ticket.
isoverdue=1 '
;
}
elseif
(
$showanswered
)
{
////Answered
$qwhere
.
=
' AND isanswered=1 '
;
$qwhere
.
=
' AND
ticket.
isanswered=1 '
;
}
elseif
(
!
strcasecmp
(
$status
,
'open'
)
&&
!
$search
)
{
//Open queue (on search OPEN means all open tickets - regardless of state).
//Showing answered tickets on open queue??
if
(
!
$cfg
->
showAnsweredTickets
())
$qwhere
.
=
' AND isanswered=0 '
;
$qwhere
.
=
' AND
ticket.
isanswered=0 '
;
/* Showing assigned tickets on open queue?
Don't confuse it with show assigned To column -> F'it it's confusing - just trust me!
...
...
@@ -149,7 +149,7 @@ if ($_REQUEST['advsid'] && isset($_SESSION['adv_'.$_REQUEST['advsid']])) {
$sortOptions
=
array
(
'date'
=>
'effective_date'
,
'ID'
=>
'ticket.`number`'
,
'pri'
=>
'pri.priority_urgency'
,
'name'
=>
'user.name'
,
'subj'
=>
'cdata.subject'
,
'status'
=>
'ticket.status'
,
'assignee'
=>
'assigned'
,
'staff'
=>
'staff'
,
'dept'
=>
'dept_name'
);
'dept'
=>
'dept
.dept
_name'
);
$orderWays
=
array
(
'DESC'
=>
'DESC'
,
'ASC'
=>
'ASC'
);
...
...
@@ -198,10 +198,10 @@ $$x=' class="'.strtolower($order).'" ';
if
(
$_GET
[
'limit'
])
$qstr
.
=
'&limit='
.
urlencode
(
$_GET
[
'limit'
]);
$qselect
=
'SELECT ticket.ticket_id,lock_id,`number`,ticket.dept_id,ticket.staff_id,ticket.team_id '
$qselect
=
'SELECT ticket.ticket_id,
tlock.
lock_id,
ticket.
`number`,ticket.dept_id,ticket.staff_id,ticket.team_id '
.
' ,user.name'
.
' ,email.address as email, dept_name '
.
' ,ticket.status,ticket.source,isoverdue,isanswered,ticket.created '
;
.
' ,email.address as email,
dept.
dept_name '
.
' ,ticket.status,ticket.source,
ticket.
isoverdue,
ticket.
isanswered,ticket.created '
;
$qfrom
=
' FROM '
.
TICKET_TABLE
.
' ticket '
.
' LEFT JOIN '
.
USER_TABLE
.
' user ON user.id = ticket.user_id'
.
...
...
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