1 --- eventum-20060830/include/class.notification.php 2006-08-30 20:17:25.074832296 +0300
2 +++ eventum/include/class.notification.php 2006-09-21 20:59:32.125474606 +0300
8 + * Method used to get list of addresses that were email sent to.
11 + * @param integer $issue_id The issue ID
12 + * @return array list of addresse
14 + function getLastNotifiedAddresses($issue_id = null)
16 + global $_EVENTUM_LAST_NOTIFIED_LIST;
18 + if (is_null($_EVENTUM_LAST_NOTIFIED_LIST)) {
22 + if (is_null($issue_id)) {
23 + // return all addresses in flat view
24 + $ret = array_values($_EVENTUM_LAST_NOTIFIED_LIST);
26 + // return address list for specific issue_id only.
27 + $ret = $_EVENTUM_LAST_NOTIFIED_LIST[$issue_id];
29 + return array_unique($ret);
34 * Method used to format and send the email notifications.
37 function notifySubscribers($issue_id, $emails, $type, $data, $subject, $internal_only, $type_id = false, $headers = false)
39 + global $_EVENTUM_LAST_NOTIFIED_LIST;
42 $tpl = new Template_API;
43 $tpl->setTemplate('notifications/' . $type . '.tpl.text');
45 $full_subject = "[#$issue_id] $subject: $extra_subject";
47 $mail->send($from, $emails[$i], $full_subject, TRUE, $issue_id, $final_type, $sender_usr_id, $type_id);
49 + $_EVENTUM_LAST_NOTIFIED_LIST[$issue_id][] = $emails[$i];
53 --- eventum-20060829/update.php 2006-08-30 00:46:19.047416365 +0300
54 +++ eventum-20060830/update.php 2006-08-30 20:17:24.844826982 +0300
58 "subscribers" => Notification::getSubscribers($issue_id),
59 + "notify_list" => Notification::getLastNotifiedAddresses($issue_id),
60 "categories" => Category::getAssocList($prj_id),
61 "priorities" => Priority::getAssocList($prj_id),
62 "status" => $statuses,
63 --- eventum/templates/update_form.tpl.html~ 2006-11-19 23:13:05.931183315 +0200
64 +++ eventum/templates/update_form.tpl.html 2006-11-19 23:16:07.055242625 +0200
66 {if $has_duplicates == 'yes'}
67 <br />{t}Also, all issues that are marked as duplicates from this one were updated as well.{/t}
71 + {if $notify_list|@count > 0}
72 + <b>{t}E-mail about issue update was sent to:{/t}</b><br />
73 + {foreach from=$notify_list item=email_address}
74 + {$email_address|escape:"html"}<br />
80 <a href="view.php?id={$smarty.post.issue_id}" class="link">{t}Return to Issue{/t} #{$smarty.post.issue_id} {t}Details Page{/t}</a>
85 --- eventum-20060830/close.php 2006-09-04 14:46:53.766630207 +0300
86 +++ eventum-20060830/close.php 2006-09-04 13:57:56.000000000 +0300
88 $tpl->assign("close_result", $res);
91 -$tpl->assign("statuses", Status::getClosedAssocList($prj_id));
92 -$tpl->assign("resolutions", Resolution::getAssocList());
93 -$tpl->assign("time_categories", Time_Tracking::getAssocCategories());
95 + "statuses" => Status::getClosedAssocList($prj_id),
96 + "resolutions" => Resolution::getAssocList(),
97 + "time_categories" => Time_Tracking::getAssocCategories(),
98 + "notify_list" => Notification::getLastNotifiedAddresses($issue_id),
101 if ((Customer::hasCustomerIntegration($prj_id)) && (Customer::hasPerIncidentContract($prj_id, Issue::getCustomerID($issue_id)))) {
102 $details = Issue::getDetails($issue_id);
103 --- eventum-20060830/templates/close.tpl.html~ 2006-09-04 14:46:53.486623924 +0300
104 +++ eventum-20060830/templates/close.tpl.html 2006-09-04 14:45:42.000000000 +0300
106 {if $close_result == -1}
107 <b>{t}Sorry, an error happened while trying to run your query.{/t}</b>
108 {elseif $close_result == 1}
109 - <b>{t}Thank you, the issue was closed successfully. Please choose from one of the options below:{/t}</b>
110 + <b>{t}Thank you, the issue was closed successfully.{/t}</b><br/>
112 + {if $notify_list|@count > 0}
114 + <b>{t}E-mail about issue update was sent to:{/t}</b><br />
115 + {foreach from=$notify_list item=email_address}
116 + {$email_address|escape:"html"}<br />
121 + <b>{t}Please choose from one of the options below:{/t}</b>
123 <li><a href="view.php?id={$smarty.post.issue_id}" class="link">{t}Open the Issue Details Page{/t}</a></li>
124 <li><a href="list.php" class="link">{t}Open the Issue Listing Page{/t}</a></li>