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

"Select Content" button is working only for the first locationlist attribute in the Custom Block

    XMLWordPrintable

Details

    Description

      Creating a Custom Block with more than one locationlist attribute will result in only first one working correctly, as the "Select Content" button is not working for any of them than the first.

      Steps to reproduce
      1. Clean installation of eZ Platform EE 2.5.1
      2. Create a new Custom Block:

      ezplatform.yml
      ezplatform_page_fieldtype:
          blocks:
              testbblock:
                  name: 'Test Block'
                  thumbnail: '/bundles/ezplatformadminui/img/ez-icons.svg#contentlist'
                  views:
                      testblock:
                          template: 'AppBundle:blocks:testblock.html.twig'
                          name: 'Default block template'
                  attributes:
                      list1:
                          type: locationlist
                          name: 'List 1'
                      list2:
                          type: locationlist
                          name: 'List 2'
                      list3:
                          type: locationlist
                          name: 'List 3'
      

      3. Create empty testblock.html.twig template in AppBundle/Resources/views/blocks/ directory.
      4. Create a new LandingPage, drag na drop "Test Block".
      5. Open settings view to newly added block

      Result
      Only the first "Select content" button will work.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mateusz.bieniek@ibexa.co Mateusz Bieniek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: