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

Request #13567 Support for regexp in $_excludeVars
Submitted: 2008-04-02 15:51 UTC
From: creator Assigned: quipo
Status: Closed Package: Pager (version 2.4.6)
PHP Version: Irrelevant OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  


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 : 23 - 17 = ?

 
 [2008-04-02 15:51 UTC] creator (Stefano Coletta)
Description: ------------ While using the Pager class along with the Quickform class I've found an issue if you have a page with both Quickform and Pager. If I have submitted the page and then I click on any button on the pager to change page, I got the page submitted again just because the Pager retains all the vars pertaining to Quickform and not only data fields, even buttons! So the undesired behaviour. Quickform creates elements like buttons prepending the elements names with the string "_qf_". Since I have some buttons on several pages and they have different names I concluded that filtering them with a regexp would have been a good idea. Thus I've patched the $_excludeVars behaviour adding support for regexps without breaking backward compatibility.

Comments

 [2008-04-20 14:09 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.