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 ...@@ -52,8 +52,8 @@ class EloquentSettingRepository extends EloquentBaseRepository implements Settin
// Check if media exists // Check if media exists
if($settingName == 'medias_single') { if($settingName == 'medias_single') {
// Get first key of values (Original settingName) // Get first key of values (Original settingName)
foreach ($settingValues as $key => $mediaId) { foreach ($settingValues as $key => $value) {
$normalisedValue = [ 'medias_single' => $mediaId ]; $normalisedValue = [ $settingName => [$key => $value] ];
$settingName = $key; $settingName = $key;
break; 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