chg: [genericElement:metafield_panel] Only display notice if the entity has meta fields
parent
da5c4e2de7
commit
19b4648efb
|
@ -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>',
|
||||
|
|
Loading…
Reference in New Issue