Browse Source

fixed user settings json decode

tags/0.1.2
Robin Thoni 8 years ago
parent
commit
71f8875e73
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/Auth/Business/LuticateSettingsUsersBusiness.php

+ 5
- 1
src/Auth/Business/LuticateSettingsUsersBusiness.php View File

@@ -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
     /**

Loading…
Cancel
Save