Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Remove State Enum, Use Event Table
This commit allows us to use the event table's event_ids instead of using an enum field for states in the audit table.
- Loading branch information
Showing
with
75 additions
and 55 deletions.
- +12 −12 include/class.auth.php
- +1 −1 include/class.organization.php
- +8 −8 include/class.task.php
- +14 −2 include/class.thread.php
- +1 −1 include/class.thread_actions.php
- +24 −16 include/class.ticket.php
- +1 −1 include/class.user.php
- +1 −1 include/client/view.inc.php
- +1 −1 include/staff/templates/task-view.tmpl.php
- +1 −1 include/staff/ticket-view.inc.php
- +1 −1 scp/categories.php
- +2 −2 scp/departments.php
- +2 −2 scp/faq.php
- +1 −1 scp/orgs.php
- +2 −2 scp/staff.php
- +2 −2 scp/teams.php
- +1 −1 tickets.php
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -521,7 +521,7 @@ static function fromVars($vars) { | ||
} | ||
|
||
Signal::send('organization.created', $org); | ||
$type = array('type' => 'created'); | ||
Signal::send('object.created', $org, $type); | ||
return $org; | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -3,7 +3,7 @@ | ||
|
||
$info=($_POST && $errors)?Format::htmlchars($_POST):array(); | ||
|
||
$type = array('type' => 'viewed'); | ||
Signal::send('object.view', $ticket, $type); | ||
|
||
$dept = $ticket->getDept(); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -86,7 +86,7 @@ | ||
|
||
$info=($_POST && $errors)?Format::input($_POST):array(); | ||
|
||
$type = array('type' => 'viewed'); | ||
Signal::send('object.view', $task, $type); | ||
|
||
if ($task->isOverdue()) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.