Werk #18958: Fix Host/Rules incorrectly shown as matching

Component Setup
Title Fix Host/Rules incorrectly shown as matching
Date Nov 19, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

When clicking on Host/Rules in the "Properties of host" page, rules were beings shown as matching even though they weren't (e.g. 3/3 instead of 2/3).

Also, when clicking additionally on the individual rule names, rules that were not matching the host were being marked as "matching" with a green badge.

This was happening for hosts in different folders as the ones matching.

These issues are now fixed so that only the matching rules are shown as "matching" in both the Host/Rules (Rule search) page as in the individual rule pages.

To the list of all Werks