Affected Version
2026.2
Affected capability
Data Objects
Steps to reproduce
- Open the class editor (Data Management → Data Model Definitions → Classes) for any class that has a
select datatype field whose options were never configured
- Select the field in the tree, scroll to Specific Settings → Select Options. The grid shows "No data available yet."
- Click the Add button above the grid to add the first option row.
Actual Behavior
The browser console throws:
TypeError: e is not iterable
at Object.addRow (__federation_expose_app.<hash>.js:3356:1401)
at Object.onClick (__federation_expose_modules__field_definitions.<hash>.js:6:28310)
...
No row is added; the grid remains empty and the field cannot be given any options through the UI.
Root cause
- The class-definition API (
GET /pimcore-studio/api/class/definition/configuration-view/detail/{id}/layout) serializes the field's options as null (not []) when no options have ever been set:
{"name":"status", ..., "options":null, ...}
- The frontend addRow handler appears to spread/iterate the current options value directly (something like [...currentOptions, newRow]) without guarding against null, which throws TypeError: e is not iterable instead of treating a missing/null value as an empty array.
Workaround
Manually edit the class definition export (var/classes/definition_ClassName.php) and change the field's
to
then clear the Symfony cache. After that, the API returns "options":[] and the Add button works normally.
Suggested fix
Either:
- Have the backend serialize options as [] instead of null when empty (defensive default at the ClassDefinition\Data\Select model level), and/or
- Guard addRow (and any other place that spreads/iterates options) against a null/undefined value on the frontend
Expected Behavior
A new empty, editable option row is added to the grid.
Affected Version
2026.2
Affected capability
Data Objects
Steps to reproduce
selectdatatype field whoseoptionswere never configuredActual Behavior
The browser console throws:
No row is added; the grid remains empty and the field cannot be given any options through the UI.
Root cause
GET /pimcore-studio/api/class/definition/configuration-view/detail/{id}/layout) serializes the field'soptionsasnull(not[]) when no options have ever been set:{"name":"status", ..., "options":null, ...}Workaround
Manually edit the class definition export (var/classes/definition_ClassName.php) and change the field's
'options' => NULL,to
then clear the Symfony cache. After that, the API returns "options":[] and the Add button works normally.
Suggested fix
Either:
Expected Behavior
A new empty, editable option row is added to the grid.