Skip to content

Commit

Permalink
Fix the deserialization of data with alias key from old versions
Browse files Browse the repository at this point in the history
  • Loading branch information
doishub committed Jan 27, 2020
1 parent da3d186 commit a75be90
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Resources/contao/classes/StyleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,15 @@ public static function deserializeValues($arrValue){
{
foreach ($values as $alias => $arrItem)
{
$arrValue[ $arrItem['id'] ] = $arrItem['value'];
if(!is_array($arrItem))
{
// @deprecated: to be removed in Version 3.0. (interception of storage based on the alias)
$arrValue[ $alias ] = $arrItem;
}
else
{
$arrValue[ $arrItem['id'] ] = $arrItem['value'];
}
}
}

Expand Down

0 comments on commit a75be90

Please sign in to comment.