From 19b4648efb0a4127532cb1d86b3117c66e507703 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Fri, 17 Dec 2021 14:04:44 +0100 Subject: [PATCH] chg: [genericElement:metafield_panel] Only display notice if the entity has meta fields --- .../element/genericElements/SingleViews/metafields_panel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/element/genericElements/SingleViews/metafields_panel.php b/templates/element/genericElements/SingleViews/metafields_panel.php index 753a5c7..e426679 100644 --- a/templates/element/genericElements/SingleViews/metafields_panel.php +++ b/templates/element/genericElements/SingleViews/metafields_panel.php @@ -36,7 +36,7 @@ foreach($data['MetaTemplates'] as $metaTemplate) { count($fields) ) ]); - if (!empty($metaTemplate['hasNewerVersion'])) { + if (!empty($metaTemplate['hasNewerVersion']) && !empty($fields)) { $listTable = $this->Bootstrap->alert([ 'html' => sprintf( '
%s
%s
',