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";