Mantis Bug Tracker
 

View Issue Details Jump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010636mantisbtpreferencespublic2009-06-28 11:332009-09-17 07:17
Reporterpluntke 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusnewResolutionopen 
PlatformOSOS Version
Product Version1.2.0rc1 
Target VersionFixed in Version 
Summary0010636: set default for collapse tokens
Descriptionlike in 0008465 I'd like to have a possibility to chose which sections are collapsed by default

since the collapse_api.php is used I can't find where to set defaults for that
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0022959)
DEvil HUnter (reporter)
2009-09-17 07:17
edited on: 2009-09-17 07:18

i found the new "simple" way to collapse filters (and the other sections, think you will get the idea)..
add the following code to the custom_functions_inc.php in mantis main dir (if the file does not exist-create it with '<?php' at the top):

if (auth_is_user_authenticated()) {
    //collapse filters by default > work around
    if (token_get(TOKEN_COLLAPSE) == null) {
        token_set( TOKEN_COLLAPSE, 'a:1:{s:6:"filter";b:0;}' );
    }
}

it would still be nice to have a better way using the config file..
and not checking every page click for token..
creating default token for this while user creation would be nice...


- Issue History
Date Modified Username Field Change
2009-06-28 11:33 pluntke New Issue
2009-09-16 22:18 DEvil HUnter Issue Monitored: DEvil HUnter
2009-09-17 07:17 DEvil HUnter Note Added: 0022959
2009-09-17 07:18 DEvil HUnter Note Edited: 0022959 View Revisions


MantisBT 1.2.2 git master-1.2.x[^]
Copyright © 2000 - 2010 MantisBT Group
Time: 0.2480 seconds.
memory usage: 1,933 KB
Powered by Mantis Bugtracker