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
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p18 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

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