chg: [metatemplate:meta_fields_to_update] Only show notice if applicable
parent
61736531b1
commit
5c520e440d
|
@ -28,8 +28,8 @@ foreach ($entities as $entity) {
|
|||
__('has {0} meta-fields to update', count($entity->meta_fields))
|
||||
);
|
||||
}
|
||||
if ($amountOfEntitiesToUpdate > 0) {
|
||||
$bodyHtml .= sprintf('<li class="list-inline-item fw-light fs-7">%s</li>', __('{0} more entities', h($amountOfEntitiesToUpdate)));
|
||||
if ($amountOfEntitiesToUpdate > 10) {
|
||||
$bodyHtml .= sprintf('<li class="list-inline-item fw-light fs-7">%s</li>', __('{0} more entities', h(10 - $amountOfEntitiesToUpdate)));
|
||||
}
|
||||
$bodyHtml .= '</ul>';
|
||||
|
||||
|
|
Loading…
Reference in New Issue