]> git.pld-linux.org Git - packages/eventum.git/blame - eventum-workflow-handlenewnote-note_id.patch
- rename new function to getLastNotifiedAddresses
[packages/eventum.git] / eventum-workflow-handlenewnote-note_id.patch
CommitLineData
b88a57be
ER
1add $note_id to workflow handleNewNote method
2this could be used in workflow to process note contents, for example act on
3sender (check for Notification::isBounceMessage for example)
4
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
7@@ -302,14 +302,15 @@
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
12 */
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)
15 {
16 if (!Workflow::hasWorkflowIntegration($prj_id)) {
17 return;
18 }
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);
22 }
23
24
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
27@@ -359,7 +359,7 @@
28 } else {
29 Notification::notify($issue_id, 'notes', $new_note_id, $internal_only);
30 }
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);
33 }
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
38@@ -113,8 +113,9 @@
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
43 */
44- function handleNewNote($prj_id, $issue_id, $usr_id, $closing)
45+ function handleNewNote($prj_id, $issue_id, $usr_id, $closing, $note_id)
46 {
47 echo "Workflow: New Note<br />\n";
48 }
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
51@@ -106,8 +106,9 @@
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
56 */
57- function handleNewNote($prj_id, $issue_id, $usr_id, $closing)
58+ function handleNewNote($prj_id, $issue_id, $usr_id, $closing, $note_id)
59 {
60 }
61
This page took 0.034861 seconds and 4 git commands to generate.