Skip to content
Snippets Groups Projects
Commit 7335525e authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix $this usage in static function

parent 7bae3d15
No related branches found
No related tags found
No related merge requests found
......@@ -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 = $this->addCollaborator($u, $settings, $errors)) {
if ($c = $ticket->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.
$this->logNote(sprintf('Collaborators for %s organization added',
$ticket->logNote(sprintf('Collaborators for %s organization added',
$org->getName()),
implode("<br>", $collabs), $org->getName(), false);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment