Commit 6e88fc18 authored by lphuberdeau's avatar lphuberdeau

[FIX] Unordered 'page' numbers made lookup experience less than optimal

parent 4d4a94cf
......@@ -80,13 +80,21 @@ class ObjectList // {{{
}
function render( $smarty, $key, $options ) {
foreach( $this->customIndexes[$key] as $indexes ) {
foreach( $indexes as $index ) {
$renderer = $this->renderers[$index];
if( is_null( $key ) ) {
foreach( $this->renderers as $index => $renderer ) {
$smarty->assign( 'index', $index );
$renderer->render( $smarty, $options );
}
} else {
foreach( $this->customIndexes[$key] as $indexes ) {
foreach( $indexes as $index ) {
$renderer = $this->renderers[$index];
$smarty->assign( 'index', $index );
$renderer->render( $smarty, $options );
}
}
}
}
} // }}}
......@@ -356,7 +364,7 @@ foreach($indexPages as $page) {
}
// Display all data
$objectList->render( $smarty, 'title', array(
$objectList->render( $smarty, null, array(
'decorator' => 'indexed',
'display' => 'object',
) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment