BUGFIX Fix Breadcrumbs in ReportAdmin

This commit is contained in:
Andrew O'Neil 2012-04-10 14:49:19 +12:00
parent 93f1696a66
commit 97482f8664

View File

@ -110,6 +110,10 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
*/
public function Breadcrumbs() {
$items = parent::Breadcrumbs();
// The root element should explicitly point to the root node.
// Uses session state for current record otherwise.
$items[0]->Link = singleton('ReportAdmin')->Link();
if ($this->reportObject) {
//build breadcrumb trail to the current report