Skip to content
This repository
Browse code

BUGFIX Fix Breadcrumbs in ReportAdmin

  • Loading branch information...
commit 97482f866477a3f09f2eb5241b5894887c6c94e4 1 parent 93f1696
Andrew O'Neil authored April 10, 2012

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  code/controllers/ReportAdmin.php
4  code/controllers/ReportAdmin.php
@@ -110,6 +110,10 @@ public static function has_reports() {
110 110
 	 */
111 111
 	public function Breadcrumbs() {
112 112
 		$items = parent::Breadcrumbs();
  113
+		
  114
+		// The root element should explicitly point to the root node.
  115
+		// Uses session state for current record otherwise.
  116
+		$items[0]->Link = singleton('ReportAdmin')->Link();
113 117
 
114 118
 		if ($this->reportObject) {
115 119
 			//build breadcrumb trail to the current report

0 notes on commit 97482f8

Please sign in to comment.
Something went wrong with that request. Please try again.