Explorar el Código

fixed user settings json decode

tags/0.1.2
Robin Thoni hace 9 años
padre
commit
71f8875e73
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5
    1
      src/Auth/Business/LuticateSettingsUsersBusiness.php

+ 5
- 1
src/Auth/Business/LuticateSettingsUsersBusiness.php Ver fichero

26
 
26
 
27
     public static function getAllByUser($user_id, $page = 0, $perPage = 2000000000)
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
     /**

Loading…
Cancelar
Guardar