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
7335525e
Commit
7335525e
authored
10 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
oops: Fix $this usage in static function
parent
7bae3d15
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/class.ticket.php
+4
-3
4 additions, 3 deletions
include/class.ticket.php
with
4 additions
and
3 deletions
include/class.ticket.php
+
4
−
3
View file @
7335525e
...
...
@@ -2181,7 +2181,8 @@ class Ticket {
*
* $autorespond and $alertstaff overrides config settings...
*/
function
create
(
$vars
,
&
$errors
,
$origin
,
$autorespond
=
true
,
$alertstaff
=
true
)
{
static
function
create
(
$vars
,
&
$errors
,
$origin
,
$autorespond
=
true
,
$alertstaff
=
true
)
{
global
$ost
,
$cfg
,
$thisclient
,
$_FILES
;
// Don't enforce form validation for email
...
...
@@ -2499,7 +2500,7 @@ class Ticket {
$collabs
=
array
();
foreach
(
$org
->
allMembers
()
as
$u
)
{
if
(
$members
||
(
$pris
&&
$u
->
isPrimaryContact
()))
{
if
(
$c
=
$t
his
->
addCollaborator
(
$u
,
$settings
,
$errors
))
{
if
(
$c
=
$t
icket
->
addCollaborator
(
$u
,
$settings
,
$errors
))
{
$collabs
[]
=
(
string
)
$c
;
}
}
...
...
@@ -2507,7 +2508,7 @@ class Ticket {
//TODO: Can collaborators add others?
if
(
$collabs
)
{
//TODO: Change EndUser to name of user.
$t
his
->
logNote
(
sprintf
(
'Collaborators for %s organization added'
,
$t
icket
->
logNote
(
sprintf
(
'Collaborators for %s organization added'
,
$org
->
getName
()),
implode
(
"<br>"
,
$collabs
),
$org
->
getName
(),
false
);
}
...
...
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