Permalink
Browse files

Fix #2971: add reminder events to the bug history

  • Loading branch information...
1 parent da3362d commit 3d34fba1c1ecfa703134d69f11a44de1ec9f4e7e @dregad dregad committed Feb 6, 2013
Showing with 10 additions and 0 deletions.
  1. +5 −0 bug_reminder.php
  2. +1 −0 core/constant_inc.php
  3. +4 −0 core/history_api.php
View
@@ -105,6 +105,11 @@
bugnote_add( $f_bug_id, $f_body, 0, config_get( 'default_reminder_view_status' ) == VS_PRIVATE, REMINDER, $t_attr, NULL, FALSE );
}
+# Add history entries for all sent reminders
+foreach ( $f_to as $t_recipient ) {
+ history_log_event_special( $f_bug_id, BUG_REMINDER_SENT, $t_recipient );
+}
+
form_security_purge( 'bug_reminder' );
html_page_top( null, string_get_bug_view_url( $f_bug_id ) );
View
@@ -189,6 +189,7 @@
define( 'TAG_RENAMED', 27 );
define( 'BUG_REVISION_DROPPED', 28 );
define( 'BUGNOTE_REVISION_DROPPED', 29 );
+define( 'BUG_REMINDER_SENT', 30 );
define( 'PLUGIN_HISTORY', 100 );
# bug revisions
View
@@ -512,6 +512,10 @@ function history_localize_item( $p_field_name, $p_type, $p_old_value, $p_new_val
$p_old_value = user_get_name( $p_old_value );
$t_note = lang_get( 'bug_monitor' ) . ': ' . $p_old_value;
break;
+ case BUG_REMINDER_SENT:
+ $p_old_value = user_get_name( $p_old_value );
+ $t_note = lang_get( 'reminder_sent_to' ) . ': ' . $p_old_value;
+ break;
case BUG_UNMONITOR:
$p_old_value = user_get_name( $p_old_value );
$t_note = lang_get( 'bug_end_monitor' ) . ': ' . $p_old_value;

0 comments on commit 3d34fba

Please sign in to comment.