Skip to content

Commit

Permalink
Version 2.30 release
Browse files Browse the repository at this point in the history
Added option to show details in grouped emails
  • Loading branch information
CasN committed Jan 13, 2025
1 parent 71b651e commit 7515691
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 191 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Reminder Plugin

Copyright (c) 2009 - 2024 Cas Nuy - cas@nuy.info - http://www.nuy.info
Copyright (c) 2009 - 2025 Cas Nuy - cas@nuy.info - http://www.nuy.info

Released under the [GPL 2.0](http://opensource.org/licenses/GPL-2.0)

Expand Down Expand Up @@ -44,8 +44,10 @@ No Mantis scripts or tables are being altered.


## Configuration options
...
// Provide more detail with grouped emails
reminder_details = ON; #applicable for reminder-emails

```
// What is the body of the E-mail
reminder_mail_subject = "Following issue will be Due shortly";

Expand Down Expand Up @@ -179,4 +181,5 @@ Source code is also available on [Github](https://github.com/mantisbt-plugins/Re
## Credits
- Mark Ziegler, German translation (May 2010)
- Mark Ziegler German translation May-2010<br>
- Lukas Francalek Czech translation June-2023<br>
182 changes: 0 additions & 182 deletions README.txt

This file was deleted.

4 changes: 2 additions & 2 deletions Reminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class ReminderPlugin extends MantisPlugin {
function register() {
$this->name = 'Reminder';
$this->description = lang_get( 'reminder_plugin_desc' );
$this->version = '2.24';
$this->version = '2.30';
$this->requires = array('MantisCore' => '2.0.0',);
$this->author = 'Cas Nuy';
$this->contact = 'Cas-at-nuy.info';
Expand Down Expand Up @@ -37,7 +37,7 @@ function config() {
'reminder_finished' => 'Finished processing your selection',
'reminder_hours' => OFF,
'reminder_colsep' => ';',
'reminder_details' => OFF,
'reminder_details' => ON,
);
}

Expand Down
19 changes: 16 additions & 3 deletions scripts/bug_reminder_mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
} else{
$multiply=1;
}
$t_details = plugin_config_get( 'reminder_details' );
//
// access level for manager= 70
// this needs to be made flexible
Expand Down Expand Up @@ -79,7 +80,11 @@
while ($row1 = db_fetch_array($results)) {
$id = $row1['id'];
$handler = $row1['handler_id'];
$list = string_get_bug_view_url_with_fqdn( $id, $handler2 );
if ( ON == $t_details ) {
$list = formatBugEntry($row1);
} else {
$list = string_get_bug_view_url_with_fqdn( $id, $handler2 );
}
$body = $t_rem_body1. " \n\n";
$body .= $list. " \n\n";
$body .= $t_rem_body2;
Expand Down Expand Up @@ -177,15 +182,23 @@
}
if ($manager==$man2){
$list .=" \n\n";
$list .= string_get_bug_view_url_with_fqdn( $id, $man2 );
if ( ON == $t_details ) {
$list = formatBugEntry($row1);
} else {
$list = string_get_bug_view_url_with_fqdn( $id, $man2 );
}
} else {
// now send the grouped email
$body = $t_rem_body1. " \n\n";
$body .= $list. " \n\n";
$body .= $t_rem_body2;
$result = email_group_reminder( $man2, $body);
$man2 = $manager ;
$list= string_get_bug_view_url_with_fqdn( $id, $man2 );
if ( ON == $t_details ) {
$list = formatBugEntry($row1);
} else {
$list = string_get_bug_view_url_with_fqdn( $id, $man2 );
}
$list .= " \n\n";
}
}
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 2.23 #
Version: 2.30 #
Devurl: https://github.com/mantisbt-plugins/Reminder/blob/master/version.txt #
Location: https://github.com/mantisbt-plugins/Reminder/archive/refs/heads/main.zip #

0 comments on commit 7515691

Please sign in to comment.