View Issue Details

IDProjectCategoryView StatusLast Update
0010636mantisbtpreferencespublic2012-09-21 07:47
Reporterpluntke Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status newResolutionopen 
Product Version1.2.0rc1 
Summary0010636: set default for collapse tokens
Description

like 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.

Activities

DEvil HUnter

DEvil HUnter

2009-09-17 07:17

reporter   ~0022959

Last edited: 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...

cas

cas

2012-09-21 06:12

reporter   ~0032897

Last edited: 2012-09-21 07:47

I have 2 installation of 1.2.11.
base line the same, one one instance it works great, on the other totally not.
Only difference that the one failing is authentication versus AD (but users are simply authenticated and the token does exist in the DB).
Any clue what the reason could be for this?
I really would appreciate an initial value in config_inc.php.
Remembering filters is very nice , just do not like to see the filter screen initially.