]> _ Git - odl.git/commitdiff
wip #4914 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 5 Jan 2022 08:04:16 +0000 (09:04 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 5 Jan 2022 08:04:16 +0000 (09:04 +0100)
app/Http/Controllers/FrontController.php

index 3960b410a6d406d4628bec8a166f7fbbafd8daf1..b4d26899359e5e186552d8ebd54ed7d582908cf9 100644 (file)
@@ -63,7 +63,11 @@ class FrontController extends Controller
 
     protected function _getHomeFromCMS()
     {
-        $res= Publication::find('1')->getPageData();
+        $p=Publication::find('1');
+        $res= $p->getPageData();
+        if(null===$res->get('raccourcis')){
+            $res->set('raccourcis',json_decode($p->getAttribute('raccourcis'),true));
+        }
         return $res;
     }