Page MenuHomePhabricator

Sub-reference merging not correctly reset after each document section
Closed, ResolvedPublicBUG REPORT

Description

Minimal example:

<ref name="a" details="p1">content</ref>
<references />
<ref name="a" details="p1">different</ref>
<references />

Expected output: Two sections, both listing a main ref and a sub-ref.

Actual output: The sub-ref in the 2nd section is missing. This is because the duplicate detection is not reset between the sections and (wrongly) detects the 2nd sub-ref as a duplicate.

Event Timeline

Change #1205107 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Cite@master] Fix incomplete ref group clearing in legacy parser

https://gerrit.wikimedia.org/r/1205107

Change #1205107 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] Fix incomplete ref group clearing in legacy parser

https://gerrit.wikimedia.org/r/1205107