Werk #15002: Fix "Base on role" default while cloning roles

Component Setup
Title Fix "Base on role" default while cloning roles
Date Dec 7, 2022
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.2.0i1 2.1.0p18
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

If you cloned a rule multiple times, from the second clone on, the "Based on role" property had the default "Administrator", no matter what initial builtin role was cloned.

The property will now always show the builtin role of the source role that was cloned. E.g. if you clone "guest" multiple times, the clones will always show "Guest user".

To the list of all Werks