Actions
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.
Actions
Added by krileon over 4 years ago. Updated about 4 years ago.
Description
Changing the order after enabling reordering when the field group contains an image field fails to move the image to the new row.
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.
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.
Field groups will now properly re-index before processing storage behaviors to ensure existing values can't be lost.