Skip to content

Commit 1398da2

Browse files
authored
fix(admin/contentType): getSortOrder -> getOrderKey (#1457)
1 parent 00777e3 commit 1398da2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/ContentTypeService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ public function update(ContentType $contentType, bool $mustBeReset = true): void
523523
$contentTypeRepository = $em->getRepository(ContentType::class);
524524
if ($mustBeReset) {
525525
$contentType->reset($contentTypeRepository->nextOrderKey());
526-
} elseif (null === $contentType->getSortOrder()) {
526+
} elseif (null === $contentType->getOrderKey()) {
527527
$contentType->setOrderKey($contentTypeRepository->nextOrderKey());
528528
}
529529
$contentTypeRepository->save($contentType);

0 commit comments

Comments
 (0)