PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » Pager » Bug #8969

excludeVars with extraVars at the same time

Details

Request #8969excludeVars with extraVars at the same time
Submitted2006-10-11 14:05 UTC
Fromfreon at post dot cz
Assignedquipo
StatusClosed
PackagePager
PHP Version5.0.4
OSCentOS
Roadmaps(Not assigned)

Comments

[2006-10-11 14:05 UTC] freon at post dot cz

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