From 6ef556bef6b8dd3cea260b04f38688b6e36fc4a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Mon, 1 Oct 2018 14:47:06 +0200 Subject: [PATCH] :ambulance: fix(templates) Do not show empty sections in creation by template dialog issue #5899 --- include/class_template.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class_template.inc b/include/class_template.inc index a18b4e385..6ce371be1 100644 --- a/include/class_template.inc +++ b/include/class_template.inc @@ -96,8 +96,8 @@ class template $this->attributes[$class][] = $attr; } } - if (empty($this->attributes[$class]) && $tab->ignore_account) { - // Do not show empty sections for tabs which are not explicitely enabled + if (empty($this->attributes[$class])) { + /* Do not show empty sections */ unset($this->attributes[$class]); } } -- GitLab