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

Request #8969 excludeVars with extraVars at the same time
Submitted: 2006-10-11 09:05 UTC Modified: 2006-10-11 11:01 UTC
From: freon at post dot cz Assigned: quipo
Status: Closed Package: Pager (version 2.4.2)
PHP Version: 5.0.4 OS: CentOS
Roadmaps: (Not assigned)    
Subscription  


 [2006-10-11 09:05 UTC] freon at post dot cz (Marek Blazek)
Description: ------------ Item set in excludeVars array is removed from URL even if it is set at the same time in extraVars array. Test script: --------------- $_SERVER['QUERY_STRING'] = 'xxx&page=1'; $sections = array ('xxx', 'yyy', 'zzz'); $params = array ('excludeVars' = $sections); for (i=0; i<count($sections); $i++) { $params['extraVars'] = array ($sections[$i]); $pgr =& Pager::factory($params); . . . } Expected result: ---------------- Query string in pager for section xxx: ...?xxx&page=1 Query string in pager for section yyy: ...?yyy&page=1 Query string in pager for section zzz: ...?zzz&page=1 Actual result: -------------- Query string in all pagers: ...?page=1

Comments

 [2006-10-11 11:01 UTC] quipo (Lorenzo Alberton)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.