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

eZSubscriptionList::registerSubscription bug report + fix

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • None
    • None
    • Operating System: Linux Slackware 11.0
      PHP Version: 4.4.4
      Database and version: MySql 5.0.24a

    Description

      eZSubscriptionList::registerSubscription doesn't correctly check for logged in user.
      I don't know why but the actual used function:

      if ( $this->attribute( 'auto_confirm_registered' ) &&  eZUser::isUserLoggedIn( ) )

      doesn't work, i had to change it to:

      $currentUser = eZUser::currentUser();
              if ( $this->attribute( 'auto_confirm_registered' ) &&  $currentUser->isLoggedIn() )

      patch attached against latest version

      Steps to reproduce

      part of other problems, see http://ez.no/community/contribs/applications/ez_newsletter#comments

      Attachments

        1. ezpatch.diff
          0.9 kB
        2. ezpatch.diff
          1.0 kB

        Activity

          People

            tos tos
            morpheus morpheus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: