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

Attribute cannot be deleted from a block

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 2.5.6
    • None

    Description

      Description

      An attribute of a block (text-field) is never used anymore.
      Therefore we removed this attribute (textfield2) from a module in blocks.yml and from the .twig-file.
      The result is:

      • all pages including such a module, cannot be edited anymore.
      • all other blocks on this page are not editable too.

      Reproduce Error

      • 1.) Create block "test_module"
      • 2.) Create twig-Template
      • 3.) Create block instance on a page
      • 4.) blocks.yml: Remove textfield2
      • 5.) Try to edit page/block
        --> page won't be loaded in edit-mode
        --> All pages including such a block cannot be edited anymore.

      Source-example

      .yml

      ezplatform_page_fieldtype:
          blocks:
              test_module:
                  name: 'Test-Module'
                  thumbnail: '/bundles/ezplatformadminui/img/ez-icons.svg#paragraph'
                  category: 'snh'
                  views:
                      default:
                          template: '/themes/snh_website/blocks/testModule/testModule.html.twig'
                          name: 'Default view'
                  attributes:
                      textfield1:
                          type: 'string'
                          name: 'Text field 1'
                      textfield2:
                          type: 'string'
                          name: 'Text field 2'
      

      .twig

      <section class="text-module">
          <div class="container">
              <div class="row">
                  {{ textfield1 }}
              </div>
              <div class="row">
                  {{ textfield2 }}
              </div>
          </div>
      </section>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            153dcf0c-f946-4cdf-8633-924f1d36e1e6@accounts.ibexa.co Jens Stapelfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: