Bug #20367
closed"select" fields with "renderMode" set to "checkbox" and non-live workspace
0%
Description
"select" fields with a "renderMode" set to "checkbox" will lose their values the first time they are modified in a non-live workspace. This only occurs if the "select" field's values were set in the live workspace then modified for the first time in a non-live workspace.
The bug seems to originate from the t3lib_tcemain::getVersionizedIncomingFieldArray() function which only seems to handle comma separated "select" field values but not arrays.
This can be reproduced by following these steps:
1) In the live workspace:
- Edit a record containing a "select" field with a "renderMode" set to "checkbox".
- Ensure at least on of the field's checkboxes has been checked.
- Save your changes.
2) In a non-live workspace:
- Modify the same record.
- Modify the field's checkbox selection.
- Save your changes.
You will now notice that on the first save the "select" field's values are now lost.
(issue imported from #M10995)
Files