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

Bug #1263 default for getPerPageSelectBox only from session
Submitted: 2004-04-22 11:32 UTC Modified: 2004-04-22 12:39 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 11: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 12: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.