Skip to content

Commit

Permalink
fix FortAwesome#73 : "Displays only the last element of a nested set …
Browse files Browse the repository at this point in the history
…model instead of displaying the element and ancestors", changes after talking on http://bugs.diem-project.org/issues/73
  • Loading branch information
yobrx committed Sep 6, 2011
1 parent b8a51a7 commit 8ac5e72
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ protected function getPages($includeCurrent = true)
$pages = array();
foreach($ancestors as $page)
{
$pk_parameter = $page->getRecordId() > 0 ? '?pk='.$page->getRecordId() : '';

$pages[$page->get('module').'/'.$page->get('action').$pk_parameter] = $page;
$pages[$page->get('module').'/'.$page->get('action').'/'.$page->getRecordId()] = $page;
}

/*
Expand Down

0 comments on commit 8ac5e72

Please sign in to comment.