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
29bae789
Commit
29bae789
authored
12 years ago
by
Peter Rotich
Browse files
Options
Downloads
Plain Diff
Merge pull request #134 from greezybacon/issue/134
Reviewed By: Peter Rotich on 07/08/12.
parents
cef15991
ea749640
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/class.team.php
+7
-0
7 additions, 0 deletions
include/class.team.php
include/staff/ticket-view.inc.php
+4
-1
4 additions, 1 deletion
include/staff/ticket-view.inc.php
with
11 additions
and
1 deletion
include/class.team.php
+
7
−
0
View file @
29bae789
...
...
@@ -80,6 +80,13 @@ class Team {
return
$this
->
members
;
}
function
hasMember
(
$staff
)
{
return
db_count
(
'SELECT COUNT(*) FROM '
.
TEAM_MEMBER_TABLE
.
' WHERE team_id='
.
db_input
(
$this
->
getId
())
.
' AND staff_id='
.
db_input
(
$staff
->
getId
()))
!==
0
;
}
function
getLeadId
(){
return
$this
->
ht
[
'lead_id'
];
}
...
...
This diff is collapsed.
Click to expand it.
include/staff/ticket-view.inc.php
+
4
−
1
View file @
29bae789
...
...
@@ -20,7 +20,10 @@ $lock = $ticket->getLock(); //Ticket lock obj
$id
=
$ticket
->
getId
();
//Ticket ID.
//Useful warnings and errors the user might want to know!
if
(
$ticket
->
isAssigned
()
&&
$staff
->
getId
()
!=
$thisstaff
->
getId
())
if
(
$ticket
->
isAssigned
()
&&
(
(
$staff
&&
$staff
->
getId
()
!=
$thisstaff
->
getId
())
||
(
$team
&&
!
$team
->
hasMember
(
$thisstaff
))
))
$warn
.
=
' <span class="Icon assignedTicket">Ticket is assigned to '
.
implode
(
'/'
,
$ticket
->
getAssignees
())
.
'</span>'
;
if
(
!
$errors
[
'err'
]
&&
(
$lock
&&
$lock
->
getStaffId
()
!=
$thisstaff
->
getId
()))
$errors
[
'err'
]
=
'This ticket is currently locked by '
.
$lock
->
getStaffName
();
...
...
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