CRM-14439 - CRM_Core_Menu - For breadcrumbs, set forceBackend=1
authorTim Otten <totten@civicrm.org>
Tue, 8 Apr 2014 23:21:32 +0000 (16:21 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 8 Apr 2014 23:21:32 +0000 (16:21 -0700)
----------------------------------------
* CRM-14439: WP demo - Access denied when visiting breadcrumb links from field listing
  https://issues.civicrm.org/jira/browse/CRM-14439

CRM/Core/Menu.php

index 06958e49730b8ead440c59e6d4a6758cb70fe17d..a18006f062f76d5d067fbbbec5a8a5f61b0f5b56 100644 (file)
@@ -460,7 +460,12 @@ class CRM_Core_Menu {
         $crumbs[] = array(
           'title' => $menu[$currentPath]['title'],
           'url' => CRM_Utils_System::url($currentPath,
-            'reset=1' . $urlVar, FALSE
+            'reset=1' . $urlVar,
+            FALSE, // absolute
+            NULL, // fragment
+            TRUE, // htmlize
+            FALSE, // frontend
+            TRUE // forceBackend; CRM-14439 work-around; acceptable for now because we don't display breadcrumbs on frontend
           ),
         );
       }