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
c5da1cda
Commit
c5da1cda
authored
6 years ago
by
Peter Rotich
Browse files
Options
Downloads
Plain Diff
Merge remote branch 'upstream/develop-next' into develop-next
parents
a00d0a32
7788df79
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/class.thread.php
+6
-1
6 additions, 1 deletion
include/class.thread.php
include/class.ticket.php
+16
-0
16 additions, 0 deletions
include/class.ticket.php
with
22 additions
and
1 deletion
include/class.thread.php
+
6
−
1
View file @
c5da1cda
...
@@ -301,6 +301,11 @@ implements Searchable {
...
@@ -301,6 +301,11 @@ implements Searchable {
return
false
;
return
false
;
break
;
break
;
case
$to
instanceof
Team
:
//Referred to a Team
return
(
$this
->
getReferral
(
$to
->
getId
(),
ObjectModel
::
OBJECT_TYPE_TEAM
));
break
;
case
$to
instanceof
Dept
:
case
$to
instanceof
Dept
:
// Refered to the dept
// Refered to the dept
return
(
$this
->
getReferral
(
$to
->
getId
(),
return
(
$this
->
getReferral
(
$to
->
getId
(),
...
@@ -314,7 +319,7 @@ implements Searchable {
...
@@ -314,7 +319,7 @@ implements Searchable {
function
refer
(
$to
)
{
function
refer
(
$to
)
{
if
(
$this
->
isReferred
(
$to
,
true
))
if
(
$this
->
isReferred
(
$to
,
true
))
return
tru
e
;
return
fals
e
;
$vars
=
array
(
'thread_id'
=>
$this
->
getId
());
$vars
=
array
(
'thread_id'
=>
$this
->
getId
());
switch
(
true
)
{
switch
(
true
)
{
...
...
This diff is collapsed.
Click to expand it.
include/class.ticket.php
+
16
−
0
View file @
c5da1cda
...
@@ -2916,6 +2916,22 @@ implements RestrictedAccess, Threadable, Searchable {
...
@@ -2916,6 +2916,22 @@ implements RestrictedAccess, Threadable, Searchable {
if
(
isset
(
$vars
[
'ccs'
])
&&
count
(
$vars
[
'ccs'
]))
if
(
isset
(
$vars
[
'ccs'
])
&&
count
(
$vars
[
'ccs'
]))
$this
->
addCollaborators
(
$vars
[
'ccs'
],
array
(),
$errors
);
$this
->
addCollaborators
(
$vars
[
'ccs'
],
array
(),
$errors
);
if
(
$collabs
=
$this
->
getCollaborators
())
{
foreach
(
$collabs
as
$collaborator
)
{
$cid
=
$collaborator
->
getUserId
();
// Enable collaborators if they were reselected
if
(
!
$collaborator
->
isActive
()
&&
(
$vars
[
'ccs'
]
&&
in_array
(
$cid
,
$vars
[
'ccs'
])))
$collaborator
->
setFlag
(
Collaborator
::
FLAG_ACTIVE
,
true
);
// Disable collaborators if they were unchecked
elseif
(
$collaborator
->
isActive
()
&&
(
!
$vars
[
'ccs'
]
||
!
in_array
(
$cid
,
$vars
[
'ccs'
])))
$collaborator
->
setFlag
(
Collaborator
::
FLAG_ACTIVE
,
false
);
$collaborator
->
save
();
}
}
// clear db cache
$this
->
getThread
()
->
_collaborators
=
null
;
// Get active recipients of the response
// Get active recipients of the response
$recipients
=
$this
->
getRecipients
(
$vars
[
'reply-to'
],
$vars
[
'ccs'
]);
$recipients
=
$this
->
getRecipients
(
$vars
[
'reply-to'
],
$vars
[
'ccs'
]);
if
(
$recipients
instanceof
MailingList
)
if
(
$recipients
instanceof
MailingList
)
...
...
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