View Issue Details

IDProjectCategoryView StatusLast Update
0010134mantisbtfilterspublic2009-06-23 15:28
ReporterPatPowerMan Assigned Tograngeway  
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.6 
Fixed in Version1.2.0rc1 
Summary0010134: Permalink will be shown even with $g_create_permalink_threshold = NOBODY;
Description

If you set the treshold for a permalink to NOBODY in the config_inc.php like this:
$g_create_permalink_threshold = NOBODY;
the associated menu point in the filter box will be shown anyway.

Steps To Reproduce

Add the line:
$g_create_permalink_threshold = NOBODY;
in your config_inc.php

Click on 'View Issues' and have a look at the filter box.
The menu point 'Create permalink' is still visible.

Additional Information

Fix

Add the line
if ( access_has_project_level( config_get( 'create_permalink_threshold' ) ) ) {
before the existing line
print_bracket_link(
in the file 'filter_api.php'

Add a closing bracket
}
at the end of this block, after the already existing closing bracket.
The entire codelines should look like this:

if ( access_has_project_level( config_get( 'create_permalink_threshold' ) ) ) {
print_bracket_link( 
    'permalink_page.php?url=' . urlencode( filter_get_url( $t_filter ) ), 
    lang_get( 'create_filter_link' ), 
    /* new window = */ true );
}

}

TagsNo tags attached.

Activities

grangeway

grangeway

2009-02-15 12:33

reporter   ~0020857

Hello,

From what I can tell, this change has already made it into the codebase ready for 1.2.x