summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rwxr-xr-xextensions/RequestNagger/bin/send-request-nags.pl17
-rw-r--r--extensions/RequestNagger/template/en/default/account/prefs/request_nagging.html.tmpl3
2 files changed, 12 insertions, 8 deletions
diff --git a/extensions/RequestNagger/bin/send-request-nags.pl b/extensions/RequestNagger/bin/send-request-nags.pl
index ae8d8fd3f..e621a8bdc 100755
--- a/extensions/RequestNagger/bin/send-request-nags.pl
+++ b/extensions/RequestNagger/bin/send-request-nags.pl
@@ -76,6 +76,7 @@ send_nags(
sub send_nags {
my (%args) = @_;
my $requests = {};
+ my $watching = $args{template} eq 'watching';
# get requests
@@ -121,13 +122,15 @@ sub send_nags {
@{ $rh->{types}->{$report} }
);
- # remove links to reports with too many items to display
- my $total = 0;
- foreach my $type (@{ $rh->{types}->{$report} }) {
- $total += scalar(@{ $rh->{$report}->{$type} });
- }
- if ($total > MAX_SETTER_COUNT) {
- $rh->{types}->{$report} = [];
+ if ($watching && $report eq 'setter') {
+ # remove links to reports with too many items to display
+ my $total = 0;
+ foreach my $type (@{ $rh->{types}->{$report} }) {
+ $total += scalar(@{ $rh->{$report}->{$type} });
+ }
+ if ($total > MAX_SETTER_COUNT) {
+ $rh->{types}->{$report} = [];
+ }
}
}
}
diff --git a/extensions/RequestNagger/template/en/default/account/prefs/request_nagging.html.tmpl b/extensions/RequestNagger/template/en/default/account/prefs/request_nagging.html.tmpl
index 90f753903..eba09ef00 100644
--- a/extensions/RequestNagger/template/en/default/account/prefs/request_nagging.html.tmpl
+++ b/extensions/RequestNagger/template/en/default/account/prefs/request_nagging.html.tmpl
@@ -45,7 +45,8 @@
[% END %]
</p>
-<p>Add users to my watch list (comma separated list):
+<p>
+ Add users to my watch list (comma separated list):<br>
[% INCLUDE global/userselect.html.tmpl
id => "add_watching"
name => "add_watching"