Skip to content

Commit

Permalink
BUGFIX: No conflicts are shown
Browse files Browse the repository at this point in the history
Regression from 36a5de7 as the deduplication did not work.
  • Loading branch information
mhsdesign committed Nov 9, 2024
1 parent 9175b0e commit 829645a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Infrastructure/ContentRepository/ConflictsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public function fromWorkspaceRebaseFailed(
/** @var array<string,Conflict> */
$conflictsByKey = [];

foreach ($workspaceRebaseFailed->conflictingEvents as $eventThatFailedDuringRebase) {
$conflict = $this->createConflictFromEventThatFailedDuringRebase($eventThatFailedDuringRebase);
if (array_key_exists($conflict->key, $conflictsByKey)) {
foreach ($workspaceRebaseFailed->conflictingEvents as $conflictingEvent) {
$conflict = $this->createConflict($conflictingEvent);
if (!array_key_exists($conflict->key, $conflictsByKey)) {
// deduplicate if the conflict affects the same node
$conflictsByKey[$conflict->key] = $conflict;
}
Expand Down

0 comments on commit 829645a

Please sign in to comment.