Image refers to attachment on old page after page is copied
Fixed
Description
When a page P is copied that contains an imagemap for attachment X to page P, the imagemap on the copied page C is still referencing attachment X to page P rather than the same attachment to page C.
Steps To Reproduce
Create some page P.
Attach image X to P.
Create an image map based on X.
Save the page.
Copy the page to new page C.
Imagemap displays correctly on page C.
Attach some different image to page P as new version of attachment X.
Imagemap on page P displays correctly new image.
Imagemap on page C displays incorrectly also new image attached to P even though image attached to C was not changed.
Expected Behaviour Imagemap on copied page C refers to attachment on page C and is thus not changed when attachment X on page P is changed.
When a page P is copied that contains an imagemap for attachment X to page P, the imagemap on the copied page C is still referencing attachment X to page P rather than the same attachment to page C.
Steps To Reproduce
Create some page P.
Attach image X to P.
Create an image map based on X.
Save the page.
Copy the page to new page C.
Imagemap displays correctly on page C.
Attach some different image to page P as new version of attachment X.
Imagemap on page P displays correctly new image.
Imagemap on page C displays incorrectly also new image attached to P even though image attached to C was not changed.
Expected Behaviour
Imagemap on copied page C refers to attachment on page C and is thus not changed when attachment X on page P is changed.