chg: [genericElement:metafield_panel] Only display notice if the entity has meta fields

pull/93/head
Sami Mokaddem 2021-12-17 14:04:44 +01:00
parent da5c4e2de7
commit 19b4648efb
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -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(
'<div>%s</div><div>%s</div>',