Skip to content

Commit

Permalink
Fix media type setting saving bug
Browse files Browse the repository at this point in the history
  • Loading branch information
darron1217 committed Apr 19, 2018
1 parent bd62e05 commit 8835b40
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public function createOrUpdate($settings)
// Check if media exists
if($settingName == 'medias_single') {
// Get first key of values (Original settingName)
foreach ($settingValues as $key => $mediaId) {
$normalisedValue = [ 'medias_single' => $mediaId ];
foreach ($settingValues as $key => $value) {
$normalisedValue = [ $settingName => [$key => $value] ];
$settingName = $key;
break;
}
Expand Down

0 comments on commit 8835b40

Please sign in to comment.