Bug #8319
closedChanging row order with images unreliable
Description
Changing the order after enabling reordering when the field group contains an image field fails to move the image to the new row.
Updated by krileon over 3 years ago
This will impact any upload based field since that data isn't present in POST to store it again. Need to figure out a behavior that keeps track of what row id a row moved to. Likely have to adjust CB Repeat itself to keep track of that by likely posting an input value that the row moved to a different index.
Updated by krileon over 3 years ago
- % Done changed from 0 to 30
Partially improved due to #8415
Now needs the code to handle sorting before any storage behavior is applied. Basically if something moves from index 2 to index 1 we want to do that move before any save behavior letting us skip any unnecessary save behavior and ensuring the data is correctly moved.
Updated by krileon over 3 years ago
- Status changed from Assigned to Resolved
- % Done changed from 30 to 100
Field groups will now properly re-index before processing storage behaviors to ensure existing values can't be lost.