Index: branches/5.2.x/core/units/filters/item_filter_tp.php =================================================================== diff -u -N -r14927 -r14979 --- branches/5.2.x/core/units/filters/item_filter_tp.php (.../item_filter_tp.php) (revision 14927) +++ branches/5.2.x/core/units/filters/item_filter_tp.php (.../item_filter_tp.php) (revision 14979) @@ -153,10 +153,13 @@ $block_params['name'] = $params['render_as']; $selected_value = $this->getFilterValue($filter_field); + $last_option_title = end($options); + foreach ($options as $option_key => $option_title) { $block_params['key'] = $option_key; $block_params['title'] = $option_title; $block_params['count'] = isset($counts[$option_key]) ? $counts[$option_key] : 0; + $block_params['is_last'] = $option_title == $last_option_title; if ( strpos($selected_value, '|') === false ) { $block_params['selected'] = "$selected_value" === "$option_key"; Index: branches/5.2.x/core/units/filters/item_filter_eh.php =================================================================== diff -u -N -r14892 -r14979 --- branches/5.2.x/core/units/filters/item_filter_eh.php (.../item_filter_eh.php) (revision 14892) +++ branches/5.2.x/core/units/filters/item_filter_eh.php (.../item_filter_eh.php) (revision 14979) @@ -64,6 +64,13 @@ } } + $exclude_filters = $this->Application->GetVar('exclude_filters'); + + if ( $exclude_filters ) { + $exclude_filters = $this->Conn->qstrArray(explode(',', $exclude_filters)); + $object->addFilter('field_filter', '%1$s.FilterField NOT IN (' . implode(',', $exclude_filters) . ')'); + } + if ( $event->getEventParam('per_page') === false ) { $event->setEventParam('per_page', -1); }