Skip to content

Commit

Permalink
Fix jackalope 2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Jul 16, 2024
1 parent e45e8b2 commit 9fd0afa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,9 @@ private function save(
if (!$isShadow) {
/* @var ArticleDocument $document */
try {
$document = $this->documentManager->find($uuid, $locale, ['load_ghost_content' => false]);
$document = $uuid
? $this->documentManager->find($uuid, $locale, ['load_ghost_content' => false])
: $this->documentManager->create('article');
} catch (DocumentNotFoundException $e) {
$document = $this->documentManager->create('article');
}
Expand Down

0 comments on commit 9fd0afa

Please sign in to comment.