Skip to content

Commit

Permalink
Merge pull request #165 from ConductionNL/development
Browse files Browse the repository at this point in the history
Fix for adding Directory (2)
  • Loading branch information
WilcoLouwerse authored Jan 10, 2025
2 parents 20a6d12 + cb5a2e7 commit a0293e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/DirectoryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function updateListing(array $newListing, array $oldListing): array{
// Do not update version, because we copy the version from the source
$newListing = $this->objectService->saveObject('listing', $oldListing, false);

return $newListing->jsonSerialize();
return $newListing instanceof Listing === true ? $newListing->jsonSerialize() : $newListing;
}

/**
Expand Down

0 comments on commit a0293e2

Please sign in to comment.