Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Sep 30, 2017
1 parent 585f4ee commit 1081e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Executor/ContentVersionManager.php
Expand Up @@ -39,7 +39,7 @@ protected function delete($step)
$sortedVersions[$versionInfo->versionNo] = $versionInfo;
}
ksort($sortedVersions);
$sortedVersions = array_slice($sortedVersions, $versionId * -1);
$sortedVersions = array_slice($sortedVersions, 0, $versionId);
foreach($sortedVersions as $versionInfo) {
$contentService->deleteVersion($versionInfo);
}
Expand Down

0 comments on commit 1081e04

Please sign in to comment.