Permalink
Browse files

opt:selector did not call section:loopBefore data format hook.

  • Loading branch information...
zyxist committed Nov 6, 2010
1 parent 043177e commit eb57fbd24a283f8284ff3fff03355c18464d5c17
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Opt/Instruction/Selector.php
@@ -114,13 +114,14 @@ protected function _processSelector(Opt_Xml_Node $node)
$section = $this->_sectionCreate($node, null, array('test' => array(self::OPTIONAL, self::ID, 'item')));
$this->_sectionStart($section);
+ $code = $section['format']->get('section:loopBefore');
if($section['order'] == 'asc')
{
- $code = $section['format']->get('section:startAscLoop');
+ $code .= $section['format']->get('section:startAscLoop');
}
else
{
- $code = $section['format']->get('section:startDescLoop');
+ $code .= $section['format']->get('section:startDescLoop');
}
$node->addAfter(Opt_Xml_Buffer::TAG_BEFORE, $code);
$separator = $this->processSeparator('$__sect_'.$section['name'], $section['separator'], $node);

0 comments on commit eb57fbd

Please sign in to comment.