Skip to content

Commit

Permalink
EZP-31584: Fixed broken tests for LocationResolver (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartek authored Jul 29, 2020
1 parent 5e9f57f commit a87f582
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function resolveLocation(ContentInfo $contentInfo): Location
} catch (NotFoundException | UnauthorizedException $e) {
// try different locations if main location is not accessible for the user
$locations = $this->locationService->loadLocations($contentInfo);
if (empty($locations)) {
if (empty($locations) || null === $contentInfo->mainLocationId) {
throw $e;
}

Expand Down

0 comments on commit a87f582

Please # to comment.