diff --git a/composer.lock b/composer.lock index c8f50498..0ad12e2c 100644 --- a/composer.lock +++ b/composer.lock @@ -1277,12 +1277,12 @@ "source": { "type": "git", "url": "https://github.com/elifesciences/api-sdk-php.git", - "reference": "0fca8b44f8e2518097ae2132655166430b4ccbae" + "reference": "77c2e13e39a9db4af7b20b538a92bb870805c089" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/elifesciences/api-sdk-php/zipball/0fca8b44f8e2518097ae2132655166430b4ccbae", - "reference": "0fca8b44f8e2518097ae2132655166430b4ccbae", + "url": "https://api.github.com/repos/elifesciences/api-sdk-php/zipball/77c2e13e39a9db4af7b20b538a92bb870805c089", + "reference": "77c2e13e39a9db4af7b20b538a92bb870805c089", "shasum": "" }, "require": { @@ -1331,7 +1331,7 @@ "issues": "https://github.com/elifesciences/api-sdk-php/issues", "source": "https://github.com/elifesciences/api-sdk-php/tree/master" }, - "time": "2024-12-05T14:46:36+00:00" + "time": "2024-12-12T15:19:39+00:00" }, { "name": "elife/civi-contacts", diff --git a/src/Controller/ArticlesController.php b/src/Controller/ArticlesController.php index d8efa4a9..ccb5c38e 100644 --- a/src/Controller/ArticlesController.php +++ b/src/Controller/ArticlesController.php @@ -634,8 +634,8 @@ private function createFirstPage(Request $request, string $id, array $arguments) $item = $parts['item']; /** @var array $context */ $context = $parts['context']; - if ($item instanceof ArticleVoR && $item->getElifeAssessment()) { - $elifeAssessment = $item->getElifeAssessment(); + if ($item instanceof ArticleVoR && $item->getElifeAssessmentArticleSection()) { + $elifeAssessment = $item->getElifeAssessmentArticleSection(); $elifeAssessmentTitle = $item->getElifeAssessmentTitle(); return ArticleSection::basic( $this->render(...$this->convertContent($elifeAssessment, 2, $context)),