Commit 8835b40d authored by Darron Park's avatar Darron Park

Fix media type setting saving bug

parent bd62e056
......@@ -52,8 +52,8 @@ class EloquentSettingRepository extends EloquentBaseRepository implements Settin
// 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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment