From f9dc428e0b2c807cc1a45e057951dc4674ac40f9 Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Fri, 3 Mar 2023 15:12:37 -0500 Subject: [PATCH] ISTWCMS-6203: fixing getting the correct author --- src/Service/UwNodeFieldValue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/UwNodeFieldValue.php b/src/Service/UwNodeFieldValue.php index f0519a9b..06280f5f 100644 --- a/src/Service/UwNodeFieldValue.php +++ b/src/Service/UwNodeFieldValue.php @@ -667,7 +667,7 @@ class UwNodeFieldValue { // If there is no author in the field, get the owner // of the blog post. - if (!$node->field_author) { + if (!$node->field_author->value) { // Set the author to the person who made blog. $author = [ -- GitLab