Only show the created avatar attachment type for user attachments

This commit is contained in:
Jan Böhmer 2026-02-08 19:31:45 +01:00
parent a4c2b8f885
commit 90c82aab2e
2 changed files with 2 additions and 1 deletions

View file

@ -52,7 +52,7 @@ class AttachmentTypeAdminForm extends BaseEntityAdminForm
if (!is_a($class, Attachment::class, true)) {
return $class;
}
return new StaticMessage($this->elementTypeNameGenerator->typeLabel($class::ALLOWED_ELEMENT_CLASS));
return new StaticMessage($this->elementTypeNameGenerator->typeLabelPlural($class::ALLOWED_ELEMENT_CLASS));
};