Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15590

eZModule::setCurrentView() doesn't work

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Low Low
    • Future
    • 4.0.6, 4.1.3, 4.2.0alpha1, 4.2.0beta1, 4.2.0rc1, 4.2.0rc2
    • Misc
    • None

    Description

      eZModule::setCurrentView sets the active view by setting a global variable:

      $GLOBALS['eZModuleCurrentView'] = $name;

      On the other hand, the view is retrieved using an index of this global variable:

      $currentView = $GLOBALS['eZModuleCurrentView'];
      if ( $currentView !== false )
          return $currentView['view'];
      

      No can work. Patch attached.

      (not a blocker at all, since the method isn't used, except in new tests we're writing).

      Attachments

        Activity

          People

            bd bd
            bd bd
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: