-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag '2.3.21' into release/2.4.0
Hotfix release 2.3.21 This fixes an issue in edit multiple mode containing MultiColumnWizard widgets (See #649).
- Loading branch information
Showing
3 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* This file is part of contao-community-alliance/dc-general. | ||
* | ||
* (c) 2013-2023 Contao Community Alliance. | ||
* (c) 2013-2024 Contao Community Alliance. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -14,7 +14,7 @@ | |
* @author Sven Baumann <[email protected]> | ||
* @author Richard Henkenjohann <[email protected]> | ||
* @author Ingolf Steinhardt <[email protected]> | ||
* @copyright 2013-2023 Contao Community Alliance. | ||
* @copyright 2013-2024 Contao Community Alliance. | ||
* @license https://github.com/contao-community-alliance/dc-general/blob/master/LICENSE LGPL-3.0 | ||
* @filesource | ||
*/ | ||
|
@@ -263,22 +263,31 @@ private function renderEditFields( | |
$properties->addProperty($editProperty); | ||
|
||
$this->setPropertyValue($editModel, $selectProperty, $propertyValuesBag); | ||
$this->markEditErrors($editProperty, $selectProperty, $propertyValuesBag); | ||
$rawValues = new PropertyValueBag(); | ||
foreach ($propertyValuesBag as $propName => $value) { | ||
$rawValues->setPropertyValue($propName, $widgetManager->decodeValue($propName, $value)); | ||
} | ||
$editErrors = $propertyValuesBag->getInvalidPropertyErrors(); | ||
foreach ($editErrors as $propName => $errors) { | ||
$rawValues->markPropertyValueAsInvalid($propName, $errors); | ||
} | ||
|
||
$this->markEditErrors($editProperty, $selectProperty, $rawValues); | ||
$this->markModelErrors( | ||
$action, | ||
$model, | ||
$model, | ||
$editProperty, | ||
$selectProperty, | ||
$propertyValuesBag, | ||
$rawValues, | ||
$environment | ||
); | ||
|
||
$fields[] = $widgetManager->renderWidget($editProperty->getName(), false, $propertyValuesBag); | ||
$fields[] = $widgetManager->renderWidget($editProperty->getName(), false, $rawValues); | ||
$fields[] = $this->injectSelectSubPropertiesInformation( | ||
$selectProperty, | ||
$editModel, | ||
$propertyValuesBag, | ||
$rawValues, | ||
$environment | ||
); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters