Werk #15663: Single-metric dashlets: Fix crash when setting fixed data range in time units

Component Metrics system
Title Single-metric dashlets: Fix crash when setting fixed data range in time units
Date Apr 28, 2023
Checkmk Edition Checkmk Enterprise (CEE)
Checkmk Version 2.1.0p27 2.2.0b6 2.3.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

When attempting to configure Data range > Fixed range in time units (Timespan or Duration in seconds) for single-metric dashlets such as gauges, the default value (100 s) lead to a crash when saving:

The parameter "type_p_display_range_0_3_0_days" is not an integer.

Users could still fill in integer values manually and successfully save the dashlet configuration. As of this werk, also the default value can be saved without an error message.

To the list of all Werks