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 // {{{ ...@@ -80,13 +80,21 @@ class ObjectList // {{{
} }
function render( $smarty, $key, $options ) { function render( $smarty, $key, $options ) {
foreach( $this->customIndexes[$key] as $indexes ) { if( is_null( $key ) ) {
foreach( $indexes as $index ) { foreach( $this->renderers as $index => $renderer ) {
$renderer = $this->renderers[$index];
$smarty->assign( 'index', $index ); $smarty->assign( 'index', $index );
$renderer->render( $smarty, $options ); $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) { ...@@ -356,7 +364,7 @@ foreach($indexPages as $page) {
} }
// Display all data // Display all data
$objectList->render( $smarty, 'title', array( $objectList->render( $smarty, null, array(
'decorator' => 'indexed', 'decorator' => 'indexed',
'display' => 'object', '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