Loading...
 
Skip to main content

Footnote conflicts when FOOTNOTEAREA called twice

Status
Open
Subject
Footnote conflicts when FOOTNOTEAREA called twice
Version
17.x
18.x
Category
  • Regression
Feature
Wiki Plugin (extends basic syntax)
Resolution status
New
Submitted by
Philippe Cloutier
Lastmod by
Philippe Cloutier
Rating
(0)
Description

When the FOOTNOTEAREA plugin is called more than once for a single context, footnote numbers are duplicated. For example, if a single wiki page contains 2 footnotes and that each is displayed in its own footnote area, both notes have the number 1. Moreover, clicking on the second footnote reference brings to the first footnote's content.

When a page displays several footnote areas because it contains several objects, it is OK to re-use footnote numbers. For example, if reading a list of articles and 2 articles use footnotes, it would be bad to use different footnote numbers than the numbers which would be used if viewing the articles individually. It is good that each article is displayed with a footnote number 1.

Unfortunately the parser has no idea about context up to Tiki 19. In Tiki 19, the second footnote area displays both footnotes, as in Tiki 16 and below, so the first footnote is duplicated. In Tiki 17 to 18, each footnote is displayed just once, the problem is a conflict between these.

Solution
This bug was solved by r65252Question and r65257Question. But it was re-introduced by r66044Question, which works around Footnote re-use impossible (sameas FOOTNOTE parameter removed).
Importance
6
Easy to solve?
7
Priority
42
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7046
Created
Tuesday 19 March, 2019 15:10:24 UTC
by Philippe Cloutier
LastModif
Tuesday 19 March, 2019 21:39:58 UTC


Show PHP error messages