Steps to replicate the issue
Given
- I open VE to create a page
- And use the image dialog to add an image to the page and edit the caption in that dialog
When
- I add a new basic reference to the caption's content with some content
- And immediately add a re-use of that reference to the caption
- And apply changes of the image dialog
What happens?:
- It results in showing [undefined][1] in the VE preview 1)
- And when saving the changes the two references are not a re-use but two ref's with the same content are created
What should have happened instead?:
- It results in showing [1][1] in the VE preview
- And when saving the changes there should be one reference with content, that gets named and a re-use of that reference
Notes:
- This symptom to the issue is relatively new and surfaced due to some restructuring in the numbering algorithm. The main issue seems to exist for some time now. Could at least be reproduced in MW v1.39.8