Pārlūkot izejas kodu

fixed user settings json decode

tags/0.1.2
Robin Thoni 8 gadus atpakaļ
vecāks
revīzija
71f8875e73
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5
    1
      src/Auth/Business/LuticateSettingsUsersBusiness.php

+ 5
- 1
src/Auth/Business/LuticateSettingsUsersBusiness.php Parādīt failu

@@ -26,7 +26,11 @@ class LuticateSettingsUsersBusiness extends LuBusiness {
26 26
 
27 27
     public static function getAllByUser($user_id, $page = 0, $perPage = 2000000000)
28 28
     {
29
-        return LuticateSettingsUsersDataAccess::getAllByUser($user_id, $page, $perPage);
29
+        return LuticateSettingsUsersDataAccess::getAllByUser($user_id, $page, $perPage)->map(function($value)
30
+        {
31
+            $value->setValue(json_decode($value->getValue()));
32
+            return $value;
33
+        });
30 34
     }
31 35
 
32 36
     /**

Notiek ielāde…
Atcelt
Saglabāt