6.0.0-beta1
7/6/25

[#7442] Wrong logic for showing action bar
Summary Wrong logic for showing action bar
Queue IMP
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester jan (at) horde (dot) org
Created 10/06/2008 (6117 days ago)
Due
Updated 01/14/2011 (5287 days ago)
Assigned 01/12/2011 (5289 days ago)
Resolved 01/14/2011 (5287 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
01/14/2011 11:38:01 PM Michael Slusarz Comment #7
State ⇒ Resolved
Reply to this comment
Not a bug - code does exactly what is intended and what comment 
describes.  Re-closing.
01/12/2011 08:52:02 AM Michael Slusarz Comment #6
State ⇒ Feedback
Reply to this comment
Except this is exactly what the comment says should happen:

/* If there are 20 messages or less, don't show the actions/navbar again. */

So if max_msgs is 20, the action bar *shouldn't* be shown.  It should 
only be shown with 21+ messages.

And this is exactly what is desired - the default, out of the box 
preference setting should not display the action bar at the bottom of 
the screen (it is unnecessary clutter on the screen and is only useful 
once the mailbox list begins to scroll).
01/11/2011 01:05:37 AM Matt Selsky New Attachment: mailbox.patch Download
 
01/11/2011 01:04:08 AM Matt Selsky Comment #5
State ⇒ Assigned
Version ⇒ Git master
Patch ⇒ Yes
Reply to this comment
The new algorithm doesn't seem correct.  If $_prefs['max_msgs'] is set 
to the default of 20, then $pageOb->end - $pageOb->begin will be 19 
most of the time (for mailboxes with >= 20 messages.  So ($pageOb->end 
- $pageOb->begin) >= 20 will be false most of the time and then bottom 
navbar won't be shown.

I think we instead want to compare the total message count in the 
mailbox to the max_msgs, and show the 2nd navbar if msgcount > max_msgs.

See attached patch.
10/11/2008 07:34:23 AM Michael Slusarz Comment #4
Taken from Horde DevelopersHorde Developers
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
Fixed.
10/11/2008 07:33:58 AM CVS Commit Comment #3 Reply to this comment
10/11/2008 07:33:20 AM CVS Commit Comment #2 Reply to this comment
Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/imp/mailbox.php?r1=2.873&r2=2.874&ty=u
10/06/2008 09:27:56 PM Jan Schneider Comment #1
Priority ⇒ 1. Low
State ⇒ Assigned
Patch ⇒ No
Milestone ⇒
Assigned to Horde DevelopersHorde Developers
Queue ⇒ IMP
Summary ⇒ Wrong logic for showing action bar
Type ⇒ Bug
Reply to this comment
The bottom action menu bar in the mailbox view is displayed depending 
on the total number of messages in the mailbox, not on the number of 
messages on the screen.

Saved Queries