chg: [metatemplate:meta_fields_to_update] Only show notice if applicable

pull/89/head
Sami Mokaddem 2022-03-09 09:16:47 +01:00
parent 61736531b1
commit 5c520e440d
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -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>';