Fixed bug #5822: Indexed Search section menu includes pages with 'hide in menu' flag...
authorJeff Segars <jsegars@alumni.rice.edu>
Fri, 6 Mar 2009 19:31:00 +0000 (19:31 +0000)
committerJeff Segars <jsegars@alumni.rice.edu>
Fri, 6 Mar 2009 19:31:00 +0000 (19:31 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5134 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php

index f735be5..7d3b89d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-03-06  Jeff Segars  <jeff@webempoweredchurch.org>
+
+       * Fixed bug #5822: Indexed Search section menu includes pages with "hide in menu" flag (thanks to Andy Grunwald)
+
 2009-03-06  Francois Suter  <francois@typo3.org>
 
        * Added feature #5466: Page selector for the list module (thanks to Christian Kuhn and Dmitry Pikhno)
index c220006..613a8f5 100755 (executable)
@@ -350,13 +350,13 @@ class tx_indexedsearch extends tslib_pibase {
                        $firstLevelMenu = $this->getMenu($this->wholeSiteIdList);
                        while(list($kk,$mR) = each($firstLevelMenu))    {
                                        // @TODO: RFC #7370: doktype 2&5 are deprecated since TYPO3 4.2-beta1
-                               if ($mR['doktype']!=5 {
+                               if ($mR['doktype']!=5 && !$mR['nav_hide']) {
                                        $this->optValues['sections']['rl1_'.$mR['uid']] = trim($this->pi_getLL('opt_RL1').' '.$mR['title']);
                                        if ($this->conf['show.']['L2sections']) {
                                                $secondLevelMenu = $this->getMenu($mR['uid']);
                                                while(list($kk2,$mR2) = each($secondLevelMenu)) {
                                                                // @TODO: RFC #7370: doktype 2&5 are deprecated since TYPO3 4.2-beta1
-                                                       if ($mR2['doktype']!=5) {
+                                                       if ($mR2['doktype']!=5 && !$mR2['nav_hide']) {
                                                                $this->optValues['sections']['rl2_'.$mR2['uid']] = trim($this->pi_getLL('opt_RL2').' '.$mR2['title']);
                                                        } else unset($secondLevelMenu[$kk2]);
                                                }