diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 92212a38e..fe4fd0ca9 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -2,6 +2,7 @@ - Prevent Help index from trying to link to non-existant documentation - fix: can't see the send private message link - fix: delete and become user links are shown for user list after deleting user + - fix: Inbox shows Next page link when is empty - All toolbar icons now have a class called "toolbarIcon" so they can be styled by external CSS. - Profile fields and categories and have confirmation boxes when deleting using the side menu diff --git a/docs/upgrades/templates-7.4.6/inbox.tmpl b/docs/upgrades/templates-7.4.6/inbox.tmpl new file mode 100644 index 000000000..2e56c16d8 --- /dev/null +++ b/docs/upgrades/templates-7.4.6/inbox.tmpl @@ -0,0 +1,120 @@ +#PBtmpl0000000000000206 +
+ + + + + + + + + + + + + + + + + class="alt"> + + + + + + + +
+ + + + + +
« + »
+
+ + + + +~~~ + + + diff --git a/lib/WebGUI/Operation/Inbox.pm b/lib/WebGUI/Operation/Inbox.pm index 85d0ec333..3da6d1b98 100644 --- a/lib/WebGUI/Operation/Inbox.pm +++ b/lib/WebGUI/Operation/Inbox.pm @@ -318,8 +318,10 @@ sub www_viewInbox { $vars->{'prev_url' } = $inboxUrl.';pn='.($pn-1).$sort_url; $vars->{'prev_label' } = $i18n->get("private message prev label"); } - $vars->{'next_url' } = $inboxUrl.';pn='.($pn+1).$sort_url; - $vars->{'next_label' } = $i18n->get("private message next label"); + if (scalar(@msg) >= $rpp) { + $vars->{'next_url' } = $inboxUrl.';pn='.($pn+1).$sort_url; + $vars->{'next_label' } = $i18n->get("private message next label"); + } $vars->{'messages' } = \@msg; $vars->{'noresults' } = $i18n->get(353) unless ($msgCount > 0);