Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: e6623ff81a5452527097f5dba901fadcf02c5609
https://github.com/tribe29/checkmk/commit/e6623ff81a5452527097f5dba901fadcf…
Author: Timotheus Bachinger <timotheus.bachinger(a)tribe29.com>
Date: 2020-09-07 (Mon, 07 Sep 2020)
Changed paths:
M cmk/gui/valuespec.py
Log Message:
-----------
Fix ValueSpec DropdownChoice as Alternative
* Status Quo: It was *not* possible to declare a VS Alternative where a
DropdownChoice is the first alternative.
* The reason therefore is the member matching_alternative. It uses the
base method "validate_datatype" for matching the correct alternative VS.
* However DropdownChoice did not yet implement this method and matched
therefore imediatley if it comes as first VS in the list of
alternatives.
* Later, this will lead to an invalid choice errror ("The selected element is not
longer available. Please select something else.") even another alternative was
selected.
CMK-5052
Change-Id: Iba8b700e39f9f85b3c411df976c27e742f872615