diff --git a/src/UI/Implementation/Component/Item/Renderer.php b/src/UI/Implementation/Component/Item/Renderer.php index 517ec6d83cf5..586365dfa2d5 100644 --- a/src/UI/Implementation/Component/Item/Renderer.php +++ b/src/UI/Implementation/Component/Item/Renderer.php @@ -188,8 +188,8 @@ protected function renderShy(Shy $component, RendererInterface $default_renderer $value = htmlentities($value); } $tpl->setCurrentBlock("property_row"); - $tpl->setVariable("PROP_NAME_A", $name); - $tpl->setVariable("PROP_VAL_A", $value); + $tpl->setVariable("PROP_NAME", $name); + $tpl->setVariable("PROP_VAL", $value); $tpl->parseCurrentBlock(); } $tpl->setCurrentBlock("properties"); @@ -338,19 +338,15 @@ protected function renderProperties(Item $component, RendererInterface $default_ //should introduce here htmlentities $value = $value; } - $cnt++; - if ($cnt % 2 == 1) { + $tpl->setCurrentBlock("property_cell"); + $tpl->setVariable("PROP_NAME", $name); + $tpl->setVariable("PROP_VAL", $value); + $tpl->parseCurrentBlock(); + if ($cnt % 2 === 1 || array_key_last($props) === $name) { $tpl->setCurrentBlock("property_row"); - $tpl->setVariable("PROP_NAME_A", $name); - $tpl->setVariable("PROP_VAL_A", $value); - } else { - $tpl->setVariable("PROP_NAME_B", $name); - $tpl->setVariable("PROP_VAL_B", $value); $tpl->parseCurrentBlock(); } - } - if ($cnt % 2 == 1) { - $tpl->parseCurrentBlock(); + $cnt++; } $tpl->setCurrentBlock("properties"); $tpl->parseCurrentBlock(); diff --git a/src/UI/templates/default/Item/tpl.item_notification.html b/src/UI/templates/default/Item/tpl.item_notification.html index 9dc7c9678dc5..b82b3ba06f9e 100644 --- a/src/UI/templates/default/Item/tpl.item_notification.html +++ b/src/UI/templates/default/Item/tpl.item_notification.html @@ -20,12 +20,11 @@