From 6c5ddec6f27186a48a50205f7a2c8d899ee01dae Mon Sep 17 00:00:00 2001 From: Stephen Palmstrom Date: Mon, 18 Jan 2021 18:28:09 +0000 Subject: [PATCH] Fix Issue 2307 --- CRM/Contact/Form/Task/Map.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Task/Map.php b/CRM/Contact/Form/Task/Map.php index 82b7960837..7905ff7b96 100644 --- a/CRM/Contact/Form/Task/Map.php +++ b/CRM/Contact/Form/Task/Map.php @@ -168,7 +168,12 @@ class CRM_Contact_Form_Task_Map extends CRM_Contact_Form_Task { } $session->pushUserContext(CRM_Utils_System::url('civicrm/event/info', "{$args}{$ids}")); } - CRM_Utils_System::appendBreadCrumb($bcTitle, $redirect); + // Issue 2307 + // CRM_Utils_System::appendBreadCrumb only takes one argument, an array + // of breadcrumbs, not two. + $breadcrumbs[0]['title'] = $bcTitle; + $breadcrumbs[0]['url'] = $redirect; + CRM_Utils_System::appendBreadCrumb($breadcrumbs); } $page->assign_by_ref('locations', $locations); -- 2.25.1