From 1ab804ee9bf562ac41e28b78d575f48b1b911c89 Mon Sep 17 00:00:00 2001 From: afornerot Date: Thu, 1 Oct 2020 16:29:40 +0200 Subject: [PATCH] ajout icone page dans liste des pages --- .../src/Cadoles/PortalBundle/Controller/PageController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PageController.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PageController.php index cdeb5c04..181b47b8 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PageController.php +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PageController.php @@ -133,10 +133,14 @@ class PageController extends Controller $user.=$data->getUser()->getUsername(); } + $icon=""; + if($data->getFonticon()) + $icon.=" "; + array_push($output["data"],[ $action, $data->getRoworder(), - $data->getName(), + $icon.$data->getName(), $data->getPagecategory()->getName(), $user ]);