From: Vincent Vanwaelscappel Date: Wed, 5 Jan 2022 08:04:16 +0000 (+0100) Subject: wip #4914 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f1f742b96b9365fe5beb9543ffb29695f425cc94;p=odl.git wip #4914 @0.25 --- diff --git a/app/Http/Controllers/FrontController.php b/app/Http/Controllers/FrontController.php index 3960b41..b4d2689 100644 --- a/app/Http/Controllers/FrontController.php +++ b/app/Http/Controllers/FrontController.php @@ -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; }