Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.5.1

Bug #1263 default for getPerPageSelectBox only from session
Submitted: 2004-04-22 16:32 UTC
From: tobias dot nix at web dot de Assigned: quipo
Status: Closed Package: Pager
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2004-04-22 16:32 UTC] tobias dot nix at web dot de
Description: ------------ In function getPerPageSelectBox the select default only comes from $_Session or $start. if (!empty($_SESSION[$this->_sessionVar])) { $selected = (int)$_SESSION[$this->_sessionVar]; } else { $selected = $start; } it should be: if (!empty($_SESSION[$this->_sessionVar])) { $selected = (int)$_SESSION[$this->_sessionVar]; } else { $selected = $this->_perPage; } to work without sessions. Reproduce code: --------------- Do not use session and the selectbox will always be the start value from functioncall. Expected result: ---------------- change : $selected = $start; to : $selected = $this->_perPage; Actual result: -------------- no default select value without sessions.

Comments

 [2004-04-22 17:39 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!