Skip to content

Commit

Permalink
Merge pull request #90 from oveleon/develop
Browse files Browse the repository at this point in the history
Fixed wrong class override with bundle config
  • Loading branch information
zoglo authored Oct 10, 2023
2 parents fea96e5 + 0bf720b commit 12ac19d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/StyleManager/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,13 @@ public static function mergeGroupObjects(?StyleManagerModel $objOriginal, ?Style
}

// Overwrite existing value
$key = array_search($field, array_column($arrClasses, 'key'));

$arrClasses[ $key ] = [
'key' => $cssClass['key'],
'value' => $cssClass['value']
];
if (!$key = array_search($field, array_column($arrClasses, 'key')))
{
$arrClasses[ $key ] = [
'key' => $cssClass['key'],
'value' => $cssClass['value']
];
}

continue;
}
Expand Down

0 comments on commit 12ac19d

Please sign in to comment.