Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ protected function addDataToDocument(Request $request, Model\Document $document)
{
if ($document instanceof Model\Document\PageSnippet) {
// if a target group variant get's saved, we have to load all other editables first, otherwise they will get deleted
if ($request->get('appendEditables') || ($document instanceof TargetingDocumentInterface && $document->hasTargetGroupSpecificEditables())) {
if($request->get('appendEditables') || (interface_exists(TargetingDocumentInterface::class) && $document instanceof TargetingDocumentInterface)) {
// ensure editable are loaded
$document->getEditables();
} else {
Expand Down