farhad.khan
11-07-2010, 10:00 PM
This simple mod makes the filters/selectors in the Issue List persistent. Only applies to project version for now.
Project Version Selector
After installing this mod, when a version is selected in the issue list page, the version is stored in a cookie in your browser. The issuelist page will then automatically select your last used version every time you load this page. When you change the version the cookie is updated and the newly selected version becomes the default.
Caveat
Once you select a version, you lose the ability to view issues from "(any)" version until the cookie expires, which is in 1 day. This is due to the fact that PT does not send a GET param when (any) is selected. PT assumes that if no GET is sent, it means (any). This should be addressed by PT core developers in the future.
How to install
*NIX
Upload the attached patch file to your vb root
run the patch in your vb root directory using the command below
patch < persistent_filters.txt
Windows
Open the patch file and manually add the lines with a + sign to project.php
How to uninstall
*NIX
Run the command below (to be run ONLY after installing the patch):
patch -R < persistent_filters.txt
Windows
Manually remove the lines with a + sign from project.php
Contributed by Grype Solutions (http://www.grype.ca).
Project Version Selector
After installing this mod, when a version is selected in the issue list page, the version is stored in a cookie in your browser. The issuelist page will then automatically select your last used version every time you load this page. When you change the version the cookie is updated and the newly selected version becomes the default.
Caveat
Once you select a version, you lose the ability to view issues from "(any)" version until the cookie expires, which is in 1 day. This is due to the fact that PT does not send a GET param when (any) is selected. PT assumes that if no GET is sent, it means (any). This should be addressed by PT core developers in the future.
How to install
*NIX
Upload the attached patch file to your vb root
run the patch in your vb root directory using the command below
patch < persistent_filters.txt
Windows
Open the patch file and manually add the lines with a + sign to project.php
How to uninstall
*NIX
Run the command below (to be run ONLY after installing the patch):
patch -R < persistent_filters.txt
Windows
Manually remove the lines with a + sign from project.php
Contributed by Grype Solutions (http://www.grype.ca).