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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 44 + 10 = ?

 
 [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] quipo
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.