Skip to content

Commit a93121b

Browse files
committedSep 24, 2012
Fix #14735: Permalink does not work when using "Match Type"
Conflicts: config_filter_defaults_inc.php search.php
1 parent d3617a6 commit a93121b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎core/filter_api.php

+2
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ function filter_get_url( $p_custom_filter ) {
279279
$t_query[] = filter_encode_field_and_value( FILTER_PROPERTY_TAG_SELECT, $p_custom_filter[FILTER_PROPERTY_TAG_SELECT] );
280280
}
281281

282+
$t_query[] = filter_encode_field_and_value( FILTER_PROPERTY_MATCH_TYPE, $p_custom_filter[FILTER_PROPERTY_MATCH_TYPE] );
283+
282284
if( isset( $p_custom_filter['custom_fields'] ) ) {
283285
foreach( $p_custom_filter['custom_fields'] as $t_custom_field_id => $t_custom_field_values ) {
284286
if( !filter_field_is_any( $t_custom_field_values ) ) {

‎search.php

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
$my_filter[FILTER_PROPERTY_OS_BUILD] = gpc_get_string_array( FILTER_PROPERTY_OS_BUILD, META_FILTER_ANY );
9090
$my_filter[FILTER_PROPERTY_VIEW_STATE] = gpc_get_string_array( FILTER_PROPERTY_VIEW_STATE, META_FILTER_ANY );
9191
$my_filter[FILTER_PROPERTY_VERSION] = gpc_get_string_array( FILTER_PROPERTY_VERSION, META_FILTER_ANY );
92+
$my_filter[FILTER_PROPERTY_MATCH_TYPE] = gpc_get_string ( FILTER_PROPERTY_MATCH_TYPE, FILTER_MATCH_ALL );
9293

9394
// Filtering by Date
9495
$my_filter[FILTER_PROPERTY_FILTER_BY_DATE] = gpc_get_bool( FILTER_PROPERTY_FILTER_BY_DATE );

0 commit comments

Comments
 (0)
Please sign in to comment.