Loading module/Plafond/src/View/Helper/PlafondsViewHelper.php +6 −1 Changes for module/Plafond/src/View/Helper/PlafondsViewHelper.php: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -62,6 +62,8 @@ class PlafondsViewHelper extends AbstractHtmlElement public function render(): string { $contenu = $this->affichage(); if (!empty($contenu)) { $params = [ 'perimetre' => $this->getServicePlafond()->entityToPerimetreCode($this->entity), 'id' => $this->entity->getId(), Loading @@ -73,7 +75,10 @@ class PlafondsViewHelper extends AbstractHtmlElement 'data-url' => $this->getView()->url('plafond/plafonds', $params), ]; return $this->getView()->tag('div', $attrs)->html($this->affichage()); return $this->getView()->tag('div', $attrs)->html($contenu); } else { return ''; } } Loading Loading
module/Plafond/src/View/Helper/PlafondsViewHelper.php +6 −1 Changes for module/Plafond/src/View/Helper/PlafondsViewHelper.php: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -62,6 +62,8 @@ class PlafondsViewHelper extends AbstractHtmlElement public function render(): string { $contenu = $this->affichage(); if (!empty($contenu)) { $params = [ 'perimetre' => $this->getServicePlafond()->entityToPerimetreCode($this->entity), 'id' => $this->entity->getId(), Loading @@ -73,7 +75,10 @@ class PlafondsViewHelper extends AbstractHtmlElement 'data-url' => $this->getView()->url('plafond/plafonds', $params), ]; return $this->getView()->tag('div', $attrs)->html($this->affichage()); return $this->getView()->tag('div', $attrs)->html($contenu); } else { return ''; } } Loading