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

[Media FieldType] Cannot publish item with two media fields

    XMLWordPrintable

Details

    Description

      You cannot publish Content item based on content type with two media. If one of they is empty.

      Prerequisites:
      1. Content Type with fields:
        1. ezstring non-required, searchable, translatable
        2. ezmedia required, translatable
        3. ezmedia non-required, translatable
      Steps:
      1. Go to Content > Content structure
      2. Click Create
      3. Select content type from prerequisites
      4. Fill ezstring field
      5. Click Upload file on required media and choose file
      6. Set Width and Height to 200
      7. Click Publish
      Actual result:

      Nothing happens and one console error appear:

      TypeError: result is undefined		fc7891e.js:3132:44
      isValid/< 				http://ez.eevtwo/js/fc7891e.js:3132:44
      every 					self-hosted:200:17 
      isValid 				http://ez.eevtwo/js/fc7891e.js:3132:20
      isValid 				self-hosted:951:17 
      clickHandler/isFormValid< 		http://ez.eevtwo/js/fc7891e.js:2878:65
      map 					self-hosted:297:17 
      clickHandler 				http://ez.eevtwo/js/fc7891e.js:2878:37
      trigger 				http://ez.eevtwo/js/0bfb931.js:952:9
      
      Expected result:

      Content item succesfully published.

      Note:
      1. Item can be published if we fill second (non-required) ezmedia field
      2. Besides console error there's also one warning:
        Source map error: request failed with status 404
        Resource URL: http://ez.eevtwo/js/0bfb931.js
        Source Map URL: UniversalDiscovery.module.js.map

      Attachments

        Activity

          People

            Unassigned Unassigned
            maciej.tyrala-obsolete@ez.no Maciej TyraƂa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: