Skip to content

Commit

Permalink
Merge pull request #164 from ConductionNL/fix/OP-450/directory-service
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 303b382 + c562a7a commit cb5a2e7
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 cb5a2e7

Please sign in to comment.