From a9fb644d44d68b737a63683e30af3d3a06eccafd Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Tue, 17 Dec 2019 14:38:12 +0100 Subject: [PATCH] Render label only if not hidden [MAILPOET-2453] --- lib/Form/Block/Base.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Form/Block/Base.php b/lib/Form/Block/Base.php index 633f7920c4..44c0134cc1 100644 --- a/lib/Form/Block/Base.php +++ b/lib/Form/Block/Base.php @@ -68,6 +68,12 @@ abstract class Base { protected static function renderLabel($block) { $html = ''; + if ( + isset($block['params']['hide_label']) + && $block['params']['hide_label'] + ) { + return $html; + } if ( isset($block['params']['label_within']) && $block['params']['label_within']