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

Content on the fly: Error if no default locations are set

    XMLWordPrintable

Details

    Description

      Problem
      Trying to publish content using the "Content on the fly" module causes an error if no default location is defined.

      Problem occurs inside following JS file:
      vendor/ezsystems/content-on-the-fly-prototype/bundle/Resources/public/js/views/plugins/cof-selectcontenttypeplugin.js:40

      .then(function (result) {
          event.target.set('suggestedLocations', result);
      })
      

      Steps to reproduce
      1. Configure no default location:

      parameters:
          content_on_the_fly.default.content:
                  default:
                      location: []
      

      NOTE: Make sure to clear the cache
      2. Open "Content Browse" and switch tab to "Create"
      3. Choose a content type
      4. Error notify occurs: Cannot read property 'get' of undefined

      Attachments

        Activity

          People

            Unassigned Unassigned
            d-keller d-keller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: