From 19b9bdb35ea89c891bae8cc9617702d4bccf2b90 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 12 Nov 2019 07:30:54 -0500 Subject: [PATCH] Core: Set breadcrumb as well as title --- ext/afform/core/CRM/Afform/Page/AfformBase.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/afform/core/CRM/Afform/Page/AfformBase.php b/ext/afform/core/CRM/Afform/Page/AfformBase.php index 3ccc1e50cc..3ae5a72285 100644 --- a/ext/afform/core/CRM/Afform/Page/AfformBase.php +++ b/ext/afform/core/CRM/Afform/Page/AfformBase.php @@ -22,7 +22,9 @@ class CRM_Afform_Page_AfformBase extends CRM_Core_Page { $afform = civicrm_api4('Afform', 'get', ['checkPermissions' => FALSE, 'where' => [['name', '=', $module]], 'select' => ['title']]); if (!empty($afform[0]['title'])) { - CRM_Utils_System::setTitle(strip_tags($afform[0]['title'])); + $title = strip_tags($afform[0]['title']); + CRM_Utils_System::setTitle($title); + CRM_Utils_System::appendBreadCrumb([['title' => $title, 'url' => CRM_Utils_System::url(implode('/', $pagePath), NULL, FALSE, '/')]]); } parent::run(); -- 2.25.1