[BUGFIX] Handle missing option values in CHECKBOXGROUP and RADIOGROUP 21/48721/2
authorAndreas Häfner <andreas.haefner@tritum.de>
Thu, 16 Jun 2016 11:26:54 +0000 (13:26 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 29 Jun 2016 11:21:33 +0000 (13:21 +0200)
commitc8234de844c7e16d3474877235feeb4e14cd5b47
tree6577b27ab6149ac3a08e5d4af5a70bf64513eb7c
parent9fcc0c1ae98b312016641db89e0db1996c6427ec
[BUGFIX] Handle missing option values in CHECKBOXGROUP and RADIOGROUP

Options are now checked for missing values and empty values are
inserted instead.

In rebuild process RADIOGROUP and CHECKBOXGROUP for every listed option
a single RADIO/CHECKBOX element is created by its xtype-configuration.
These elements rely on a passed value attribute. To prevent errors,
triggered by missing value attributes, a check for existence of the
attribute was introduced. In case of missing value, now an empty value
is used.
This change only influences the display process of the wizard.
Generation of Form-Configuration is not changed.

Resolves: #76019
Releases: master, 7.6
Change-Id: I3f459be2bec92c9eac20fd45a7453dbe6e28f758
Reviewed-on: https://review.typo3.org/48721
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Predefined/CheckboxGroup.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Predefined/RadioGroup.js