Fixed an exception on admin pages, if the element does not contain parts.

This commit is contained in:
Jan Böhmer 2020-05-16 21:14:05 +02:00
parent d46c1bf22d
commit cad9534b04
2 changed files with 2 additions and 1 deletions

View file

@ -254,6 +254,7 @@ abstract class BaseAdminController extends AbstractController
'pdf_data' => $pdf_data ?? null,
'timeTravel' => $timeTravel_timestamp,
'repo' => $repo,
'partsContainingElement' => $repo instanceof PartsContainingRepositoryInterface,
]);
}