1 add $note_id to workflow handleNewNote method
2 this could be used in workflow to process note contents, for example act on
3 sender (check for Notification::isBounceMessage for example)
5 --- eventum-1.7.1/include/class.workflow.php 2006-04-06 22:44:17.388665653 +0300
6 +++ /home/glen/class.workflow.php 2006-04-06 22:41:44.000000000 +0300
8 * @param integer $issue_id The ID of the issue.
9 * @param integer $usr_id The user ID of the person posting this new note
10 * @param boolean $closing If the issue is being closed
11 + * @param integer $note_id The ID of the new note
13 - function handleNewNote($prj_id, $issue_id, $usr_id, $closing = false)
14 + function handleNewNote($prj_id, $issue_id, $usr_id, $closing = false, $note_id = false)
16 if (!Workflow::hasWorkflowIntegration($prj_id)) {
19 $backend =& Workflow::_getBackend($prj_id);
20 - return $backend->handleNewNote($prj_id, $issue_id, $usr_id, $closing);
21 + return $backend->handleNewNote($prj_id, $issue_id, $usr_id, $closing, $note_id);
25 --- eventum-1.7.1/include/class.note.php 2006-04-06 22:44:17.768674142 +0300
26 +++ /home/glen/class.note.php 2006-04-06 22:41:44.000000000 +0300
29 Notification::notify($issue_id, 'notes', $new_note_id, $internal_only);
31 - Workflow::handleNewNote(Issue::getProjectID($issue_id), $issue_id, $usr_id, $closing);
32 + Workflow::handleNewNote(Issue::getProjectID($issue_id), $issue_id, $usr_id, $closing, $new_note_id);
34 // need to return the new note id here so it can
35 // be re-used to associate internal-only attachments
36 --- eventum-1.7.1/include/workflow/class.example.php 2006-04-06 22:44:17.388665653 +0300
37 +++ /home/glen/class.example.php 2006-04-06 22:41:44.000000000 +0300
39 * @param integer $issue_id The ID of the issue.
40 * @param integer $usr_id The user ID of the person posting this new note
41 * @param boolean $closing If the issue is being closed
42 + * @param integer $note_id The ID of the new note
44 - function handleNewNote($prj_id, $issue_id, $usr_id, $closing)
45 + function handleNewNote($prj_id, $issue_id, $usr_id, $closing, $note_id)
47 echo "Workflow: New Note<br />\n";
49 --- eventum-1.7.1/include/workflow/class.abstract_workflow_backend.php 2006-04-06 22:44:17.388665653 +0300
50 +++ /home/glen/class.abstract_workflow_backend.php 2006-04-06 22:41:44.000000000 +0300
52 * @param integer $issue_id The ID of the issue.
53 * @param integer $usr_id The user ID of the person posting this new note
54 * @param boolean $closing If the issue is being closed
55 + * @param integer $note_id The ID of the new note
57 - function handleNewNote($prj_id, $issue_id, $usr_id, $closing)
58 + function handleNewNote($prj_id, $issue_id, $usr_id, $closing, $note_id)