Skip to content

Commit

Permalink
Merge tag '3.6.3'
Browse files Browse the repository at this point in the history
Hotfix release 3.6.3

- Fix label value ist array
  • Loading branch information
stefanheimes committed Nov 21, 2023
2 parents 586586c + 90aaa9b commit f3888c9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/EventListener/DcGeneral/UpdateDataDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of menatwork/contao-multicolumnwizard-bundle.
*
* (c) 2012-2019 MEN AT WORK.
* (c) 2012-2023 MEN AT WORK.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -14,9 +14,10 @@
* @author Christian Schiffler <c.schiffler@cyberspectrum.de>
* @author Stefan Heimes <stefan_heimes@hotmail.com>
* @author Sven Baumann <baumann.sv@gmail.com>
* @author Ingolf Steinhardt <info@e-spin.de>
* @copyright 2011 Andreas Schempp
* @copyright 2011 certo web & design GmbH
* @copyright 2013-2019 MEN AT WORK
* @copyright 2013-2023 MEN AT WORK
* @license https://github.com/menatwork/contao-multicolumnwizard-bundle/blob/master/LICENSE LGPL-3.0-or-later
* @filesource
*/
Expand Down Expand Up @@ -93,6 +94,11 @@ private function addPropertyToDefinition(
foreach ($fieldConfig as $key => $value) {
switch ($key) {
case 'label':
if (is_array($value)) {
$subProperty->setLabel(reset($value));
$subProperty->setDescription(next($value));
break;
}
$subProperty->setLabel($value);
break;

Expand Down

0 comments on commit f3888c9

Please sign in to comment.