Allow to delete parts.

This commit is contained in:
Jan Böhmer 2019-09-02 17:42:13 +02:00
parent 0ff9e3813a
commit 94ed78f66d
4 changed files with 55 additions and 8 deletions

View file

@ -285,6 +285,10 @@ class EntityURLGenerator
public function deleteURL($entity) : string
{
if ($entity instanceof Part) {
return $this->urlGenerator->generate('part_delete', ['id' => $entity->getID()]);
}
if ($entity instanceof AttachmentType) {
return $this->urlGenerator->generate('attachment_type_delete', ['id' => $entity->getID()]);
}