If $sdgHideFiltersWithoutValues = true, filters without values will not be displayed. Currently they are rendered with
(There are no values for this filter) as description.
Index: SemanticDrilldown.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- SemanticDrilldown.php (revision ace7c254706a2fba679ddb1be4d41f273dacf658) +++ SemanticDrilldown.php (revision ) @@ -110,6 +110,8 @@ // other display settings $sdgMinValuesForComboBox = 40; $sdgNumRangesForNumberFilters = 6; +$sdgHideFiltersWithoutValues = false; + /**********************************************/ Index: specials/SD_BrowseData.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- specials/SD_BrowseData.php (revision ace7c254706a2fba679ddb1be4d41f273dacf658) +++ specials/SD_BrowseData.php (revision ) @@ -962,6 +962,7 @@ global $sdgScriptPath; global $sdgMinValuesForComboBox; global $sdgFiltersSmallestFontSize, $sdgFiltersLargestFontSize; + global $sdgHideFiltersWithoutValues; $f->createTempTable(); $found_results_for_filter = false; @@ -1029,6 +1030,11 @@ $text = $this->printFilterLine( $f->name, false, $normal_filter, $results_line ); $f->dropTempTable(); + + if ( $sdgHideFiltersWithoutValues && count( $filter_values ) == 0 ) { + $text = ''; + } + return $text; }