Univention Bugzilla – Bug 43327
Allow to unset custom entries via advanced settings tab
Last modified: 2019-01-08 17:19:13 CET
(In reply to Dirk Wiesenthal from Bug 42789, comment #7) > (In reply to Alexander Kläser from Bug 42789, comment #5) > > > [...] > > > * Custom entries (we need a list of INI fields which need to be displayed) > > > > Done. > > You cannot easily unset a custom entry. The frontend needs send > {'mycustomkey': ''} if that custom entry was deleted via the [-] button. +++ This bug was initially created as a clone of Bug #42789 +++ We will need a tab for handling further advanced settings. Herein, it will be also possible to define free key-value pairs that are currently not considered in the layout.
Custom entries can now unset when the entry is removed using the trash icon of the widget. The same problem should occur with the categories and other MultiInput widgets on the AppPage. Actually it was a combination of two problems: The variable containing the original values was initialized to early. The consequence was that the variables for the custom entries and the categories were empty. This was resolved by using the ready() function of the form. The second problem was that the #getChangedValues did not check for removed entries. This was also changed.
Works great. Already live