Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2962

Invalid return type in public method of Page model

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 2.5.8
    • None
    • Required setup:

      Clean installation of ezPlatform 2.5.8

    Description

      Class EzSystems\EzPlatformPageFieldType\FieldType\LandingPage\Model\Page contains method getZoneByIdentifier() which has invalid return type.

      Steps to reproduce:
      Create new EzSystems\EzPlatformPageFieldType\FieldType\LandingPage\Model\Page object anywhere and call getZoneByIdentifier with no existing zone id attribute.

              $page = new \EzSystems\EzPlatformPageFieldType\FieldType\LandingPage\Model\Page();
              $page->getZoneByIdentifier(55);
      

      Result
      Throws 500 exception

      Attachments

        Activity

          People

            Unassigned Unassigned
            bartlomiej.wajda@ibexa.co Bartłomiej Wajda
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: