From c584a088fb840f8fdd8c641fcd6c9d73306cef26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Sun, 29 Sep 2019 12:20:57 -0400 Subject: [PATCH] Correctly get the author, at least when only one --- web/modules/custom/geo_citation/geo_citation.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/modules/custom/geo_citation/geo_citation.module b/web/modules/custom/geo_citation/geo_citation.module index 3cfad5c..7dbd575 100644 --- a/web/modules/custom/geo_citation/geo_citation.module +++ b/web/modules/custom/geo_citation/geo_citation.module @@ -75,7 +75,7 @@ function geo_citation_pseudo_field($entity) { return $markup; } - $authors = $entity->field_authors->getValue(); + $authors = $entity->field_authors->entity->title->value; $date = $entity->field_publication_date->value; $year = substr($date, 0, 4); $title = $entity->title->value;