Issue Bug Rejected

#78654TMENU: AbstractMenuContentObject->procesItemStates: tests for mconf-state configurations wrongly dotted (mconf wrongly parsed?)

Forty Two 11/11/16, 14:29 updated 11/11/16, 15:58

Description

TMENU calls procesItemStates to process the item states into the various subsets of NO, ACT, CUR, etc.

typoscript:
10 = HMENU
10 {
> special = userfunction
> special.root = 220
> special.userFunc = Namespace\Extension\Utility\Login->getMenu
> 1 = TMENU
> 1 {
> > NO.allWrap =

  • |

  • > > ACT.allWrap =
  • |

  • > }
    }

    Resulting mconf-array:
    array (
    > ‘NO.’ => array (‘allwrap’ => ‘

  • |
  • ‘),
    > ‘ACT.’ => array(‘allwrap’ => ‘
  • |
  • ‘)
    )

    All the tests in procesItemStates test without a trailing dot:
    if (!empty($this->mconf[‘ACT’])) { … }

    Consequently, no CUR/ACT/… state is recognized/can be formatted differently.
    Most likely, all the tests regarding $this->mconf[’<state>‘] should be replaced by $this-&gt;mconf[’<state>.’].</state></state>

    Reviews 0

    No change resolves or names this issue in its commit message, and no comment links one.