Skip to content

Commit

Permalink
BUGFIX: Apply multiple properties from inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Oct 30, 2023
1 parent 3aa32c1 commit 759ebd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function serializePayload(ControllerContext $controllerContext): array
*
* @return array<string,?array<string,mixed>>
*/
public function serializeNodeRecursively(Node $node, ControllerContext $controllerContext): array
private function serializeNodeRecursively(Node $node, ControllerContext $controllerContext): array
{
$contentRepository = $this->contentRepositoryRegistry->get($node->subgraphIdentity->contentRepositoryId);
$nodeAddressFactory = NodeAddressFactory::create($contentRepository);
Expand Down
5 changes: 3 additions & 2 deletions Classes/Domain/Model/FeedbackCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ public function setControllerContext(ControllerContext $controllerContext)
*/
public function add(FeedbackInterface $feedback)
{
foreach ($this->feedbacks as $value) {
if ($value->isSimilarTo($feedback)) {
foreach ($this->feedbacks as $i => $value) {
if ($feedback->isSimilarTo($value)) {
$this->feedbacks[$i] = $feedback;
return;
}
}
Expand Down

0 comments on commit 759ebd8

Please sign in to comment.