Univention Bugzilla – Bug 49511
App settings show boolean as false although InitialValue=True
Last modified: 2019-05-20 16:41:13 CEST
The following settings should make the appcenter show a already checked checkbox when installing ucsschool, but the checkbox is empty.
Type = Bool
Description = Create a demo school with demo users (1x teacher, 1x student, 1x schooladmin) and a demo class.
Description[de] = Automatisch eine Demoschule mit Demobenutzern (1x Lehrkraft, 1x Schüler, 1x Schuladministrator) und einer Demoklasse anlegen.
Show = Install, Settings
InitialValue = true
Thus during installation of the app:
INFO: Setting ucsschool/join/create_demo to 'false'
1. There is no way to set a UCRV to True, before installing the app.
2. The documentation says "The attribute InitialValue can be used during the installation. If no value for this attribute was given during the installation, the defined value is set."
2.1 The value is set *after* the installation, so it cannot be used during the installation.
2.2 What is the idea behind this? If an app wants to set a UCRV, it can just do so during installation. Why would it need the appcenter to do it afterwards?
Regardless of 2., please fix 1. -> The appcenter should show the InitialValue of the UCRV, when it is unset.
When setting "Show = Settings", the appcenter does not show a checkbox during installation - OK. But it also does not set ucsschool/join/create_demo to 'true'.
It simply doesn't do anything.