Skip to content

Commit

Permalink
Merge pull request #545 from ViniTou/EZP-29342-deleting-related-objec…
Browse files Browse the repository at this point in the history
…t-bookmark

EZP-29342: Deleting related object for ezobjectrelations field throws error 500
  • Loading branch information
Łukasz Serwatka authored Jun 28, 2018
2 parents b43dede + 5aa4cc0 commit f93adeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bundle/Controller/ContentViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ private function supplyContentActionForms(ContentView $view): void
$bookmarkUpdateType = $this->formFactory->updateBookmarkLocation(
new LocationUpdateBookmarkData(
$location,
$this->bookmarkService->isBookmarked($location)
$location ? $this->bookmarkService->isBookmarked($location) : false
)
);

Expand Down

0 comments on commit f93adeb

Please sign in to comment.