From 3b377ce2068d6523cd8c50dabc3b5923234b264b Mon Sep 17 00:00:00 2001 From: Vlad Ghita Date: Mon, 7 Feb 2022 20:09:36 +0200 Subject: [PATCH 1/3] Fix method name. --- src/Controller/FrontendUsersProfileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/FrontendUsersProfileController.php b/src/Controller/FrontendUsersProfileController.php index ab367a6..c69999b 100644 --- a/src/Controller/FrontendUsersProfileController.php +++ b/src/Controller/FrontendUsersProfileController.php @@ -119,7 +119,7 @@ public function edit(ContentType $contentType, Request $request): Response $content->getContentTypeSingularSlug() => $content, ]; - return $this->twigAwareController->renderTemplate($templates, $parameters); + return $this->twigAwareController->render($templates, $parameters); } else { // If session was invalidated or ended, redirect user as needed when they try to access profile From 264dfa829f9f088700d069bbce79933bab80f820 Mon Sep 17 00:00:00 2001 From: Vlad Ghita Date: Mon, 7 Feb 2022 20:16:25 +0200 Subject: [PATCH 2/3] Fix typo. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c683cd..faf7cca 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ can include: {% elseif field.type === 'checkbox' %} - {% else if field.type === 'date' %} + {% elseif field.type === 'date' %} {% endif %} {% endfor %} From 9df25b2b0bb54bbecd7d88d20be2b52c93c38682 Mon Sep 17 00:00:00 2001 From: Vlad Ghita Date: Mon, 7 Feb 2022 20:29:01 +0200 Subject: [PATCH 3/3] Disable publish related checks when displaying profile page. --- src/Controller/FrontendUsersProfileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/FrontendUsersProfileController.php b/src/Controller/FrontendUsersProfileController.php index c69999b..16659fe 100644 --- a/src/Controller/FrontendUsersProfileController.php +++ b/src/Controller/FrontendUsersProfileController.php @@ -77,7 +77,7 @@ public function view(): Response $contentType = $this->getBoltConfig()->getContentType($contentTypeSlug); $this->applyAllowForGroupsGuard($contentType); - return $this->twigAwareController->renderSingle($this->getUserRecord($contentType)); + return $this->twigAwareController->renderSingle($this->getUserRecord($contentType), false); } else { // If session was invalidated or ended, redirect user as needed when they try to access profile