Details
-
Bug
-
Resolution: Fixed
-
High
-
2.5.1
-
None
Description
Steps to reproduce
- Go to AdminUI
- Choose Admin and then Content Types
- Create a new Content Type
- Add Selection field, do not configure any options
- Try to save Content Type
Current behavior
The 500 error is thrown, with a message:
Warning: reset() expects parameter 1 to be array, null given [in vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/Selection/Type.php:90]
Expected behavior
Validation error saying that there is no selection options configured should be displayed.