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

Page external storage is not handling null values correctly

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 2.2.1
    • 2.2.0
    • None
    • DEV

    Description

      Steps to reproduce:
      1. Create simple block with non required attribute:

      blocks:     quote:         ttl: 900
              name: Quote
              category: default
              thumbnail: "/bundles/ezplatformadminui/img/ez-icons.svg#quote"
              views:             default: { name: 'Default View', template: "@ezdesign/blocks/quote/default.html.twig" }
              attributes:             content:                 type: 'text'
                      name: Content
                      value: ~
                      validators:                     not_blank:                         message: You must provide Content of Quote
                  test:                 type: string
                      name: test
                      value: ~
      

      2. Create new landing page with the block.
      3. Do not fill in 'test' attribute.
      4. Publish page.
      5. You should see "Notice: Undefined index: value" error

      Attachments

        Activity

          People

            Unassigned Unassigned
            maciej.kobus@ibexa.co Maciej Kobus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: