Skip to content

Commit

Permalink
Merge pull request #3656 from neos/bugfix/applyMultiplePropertiesFrom…
Browse files Browse the repository at this point in the history
…Inspector

BUGFIX: Apply multiple properties from inspector
  • Loading branch information
nezaniel authored Oct 30, 2023
2 parents 3aa32c1 + 759ebd8 commit 15672ed
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 15672ed

Please sign in to comment.