Skip to content

Commit

Permalink
Check project level to show tags in filter
Browse files Browse the repository at this point in the history
Check project level, instead of global level, to show tags in the filter
form.

Fixes: #23216
  • Loading branch information
cproensa authored and dregad committed Sep 9, 2017
1 parent 33a274f commit 6073390
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/filter_form_api.php
Expand Up @@ -84,7 +84,7 @@
* if the option is disabled, returns the current value and a hidden input for that value.
* @param array $p_filter Filter array
* @param string $p_filter_target Filter field name
* @param boolean $p_show_inputs Whether to return a visible form input or a text value.
* @param boolean $p_show_inputs True to return a visible form input or false for a text value.
* @return string The html content for the field requested
*/
function filter_form_get_input( array $p_filter, $p_filter_target, $p_show_inputs = true ) {
Expand Down Expand Up @@ -1584,7 +1584,7 @@ function print_filter_values_tag_string( array $p_filter ) {
*/
function print_filter_tag_string( array $p_filter = null ) {
global $g_filter;
if( !access_has_global_level( config_get( 'tag_view_threshold' ) ) ) {
if( !access_has_project_level( config_get( 'tag_view_threshold' ) ) ) {
return;
}
if( null === $p_filter ) {
Expand Down Expand Up @@ -2595,7 +2595,7 @@ function filter_form_draw_inputs( $p_filter, $p_for_screen = true, $p_static = f
null /* class */,
'relationship_type_filter_target' /* content id */
));
if( access_has_global_level( config_get( 'tag_view_threshold' ) ) ) {
if( access_has_project_level( config_get( 'tag_view_threshold' ) ) ) {
$t_row3->add_item( new TableFieldsItem(
$get_field_header( 'tag_string_filter', lang_get( 'tags' ) ),
filter_form_get_input( $t_filter, 'tag_string', $t_show_inputs ),
Expand Down

0 comments on commit 6073390

Please sign in to comment.