View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008167 | mantisbt | filters | public | 2007-07-18 19:00 | 2018-03-31 19:58 |
Reporter | bbryant | Assigned To | cproensa | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.0.7 | ||||
Target Version | 2.13.0 | Fixed in Version | 2.13.0 | ||
Summary | 0008167: Filter settings saved when using Anonymous account | ||||
Description | Filter settings are saved in the database when using the anonymous account. This has weird effects for people browsing issues on this account. | ||||
Steps To Reproduce | Steps to reproduce: | ||||
Tags | patch | ||||
Attached Files | 20080729__mantis8167_filters_saved_in_db.diff (556 bytes)
Index: core/filter_api.php =================================================================== --- core/filter_api.php (revision 450) +++ core/filter_api.php (working copy) @@ -2869,7 +2869,7 @@ echo lang_get( 'search' ); ?>: <input type="text" size="16" name="search" value="<?php PRINT string_html_specialchars( $t_filter['search'] ); ?>" /> - + <input type="hidden" name ="temporary" value="1" /> <input type="submit" name="filter" class="button-small" value="<?php PRINT lang_get( 'filter_button' ) ?>" /> </td> </form> | ||||
The filter changes for anonymous user should just affect the machine from which the filter was set. This may prove to be tricky, but this is the expected behavior. |
|
Any updates? |
|
ping |
|
Daryn is doing some work on the filters API. You might want to get in touch with him on the IRC channel. |
|
Attached is a patch for a bug I found when trying to replicate this issue on IRC with daryn. Besides this one small tweak that sets temporary filters correctly so that they aren't stored in the database, this issue is resolved. |
|
Unassigned after having been assigned for a long time without progress. |
|
This is an attempt to fix The previously commented "temporary" parameter would not fix, since its useful that filters are stored for projects as long as the anonymous user is browsing the site, the same behaviour as a registered user Needs some more testing but looks like a good compromie to get rid of this annoying issue |
|
MantisBT: master 7c4880b3 2017-04-13 09:27 Committer: atrol Details Diff |
Force temporary filters for anonymous user If user is anonymous, every change made to the filter creates a temporary filter. This way the differents users that may be logged in as anonymous don't share the filter settings. Fixes: 0008167 |
Affected Issues 0008167 |
|
mod - view_all_set.php | Diff File |