Skip to content

Commit 31a5e39

Browse files
committed
Fix missing severity and classification bars in the HTML report
Fixes a bug introduced in #7994.
1 parent 69d89c5 commit 31a5e39

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

htmlreport/cppcheck-htmlreport

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,9 @@ def filter_button(enabled_filters, id, function):
469469
def filter_bar(enabled):
470470
severity_bar = ''.join([filter_button(enabled, severity, 'toggleSeverity') for severity in ['error', 'warning', 'portability', 'performance', 'style', 'information']]) + '\n | '
471471
classification_bar = ''.join([filter_button(enabled, _class, 'toggleClassification') for _class in ['Mandatory', 'Required', 'Advisory', 'Document', 'Disapplied', 'L1','L2','L3','']]) + '\n | '
472-
if "checked/>" not in severity_bar:
472+
if "checked>" not in severity_bar:
473473
severity_bar = ''
474-
if "checked/>" not in classification_bar:
474+
if "checked>" not in classification_bar:
475475
classification_bar = ''
476476
return ''.join([
477477
' <div id="filters">\n'

0 commit comments

Comments
 (0)