Details
-
Bug
-
Resolution: Fixed
-
High
-
None
-
None
Description
You cannot publish Content item based on content type with two media. If one of they is empty.
Prerequisites:
- Content Type with fields:
- ezstring non-required, searchable, translatable
- ezmedia required, translatable
- ezmedia non-required, translatable
Steps:
- Go to Content > Content structure
- Click Create
- Select content type from prerequisites
- Fill ezstring field
- Click Upload file on required media and choose file
- Set Width and Height to 200
- 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:
- Item can be published if we fill second (non-required) ezmedia field
- 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