Description
Steps to reproduce the problem :
-Edit a page/document
-attach some files
-modify again the page
-roll back to the first version
You will see that the rolled-back version of the attachment isn't the one corresponding to the page version. Instead, the rolled back attachment will always be created from the last version, instead of the one corresponding to the page version.