Home » HTML » Pager » Bug #8969
excludeVars with extraVars at the same time
Details
| Request #8969 | excludeVars with extraVars at the same time |
|---|---|
| Submitted | 2006-10-11 14:05 UTC |
| From | freon at post dot cz |
| Assigned | quipo |
| Status | Closed |
| Package | Pager |
| PHP Version | 5.0.4 |
| OS | CentOS |
| 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