Skip to content

Commit

Permalink
correct page hierarchy in dropdown,
Browse files Browse the repository at this point in the history
  • Loading branch information
klaftertief authored and Alistair Kearney committed Jul 22, 2010
1 parent 8d149ec commit 401e6ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fields/field.pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ function getToggleStates($include_parent_titles=true){

if($p['path'] != NULL && $include_parent_titles){
$bits = preg_split('/\//', $p['path'], -1, PREG_SPLIT_NO_EMPTY);
$bits = array_reverse($bits);

foreach($bits as $h){
$parent = $this->_engine->Database->fetchVar('title', 0, "SELECT `title` FROM `tbl_pages` WHERE `handle` = '$h' LIMIT 1");
Expand Down

0 comments on commit 401e6ee

Please sign in to comment.