Page MenuHomePhabricator

Entry in timeline replaced by another one when legend text is a substring of other legend text
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue:

  • Create a timeline as follows:
<timeline>
ImageSize = width:1000 height:auto barincrement:20
PlotArea = left:120 bottom:60 top:0 right:50
Alignbars = justify
DateFormat = dd/mm/yyyy
Period = from:2000 till:28/02/2022
TimeAxis = orientation:horizontal format:yyyy

Colors =
  id:Guitare                       value:green           legend:Gitar
  id:Basse                         value:blue            legend:Gitar_boud
  id:bars                          value:gray(0.93)

Legend = orientation:vertical position:bottom columns:1
BackgroundColors = bars:bars
ScaleMajor = increment:2 start:2000
ScaleMinor = unit:year increment:1 start:2000

BarData =
  bar:Fetus text:"Nicolas Patra"
  bar:Chris text:"Chris"

PlotData=
  width:10 textcolor:black align:left anchor:from shift:(10,-4)
  bar:Fetus from:01/01/2000 till:end color:Guitare
  bar:Chris from:01/01/2000 till:01/03/2005 color:Basse
</timeline>

What happens?:
Two coloured squares shoud appear in the bottom, both are blue and read "Gitar boud".

What should have happened instead?:
Two coloured squares shoud appear in the bottom, one green that should read "Gitar", the other blue, "Gitar boud".

Software version (skip for WMF-hosted wikis like Wikipedia): occurs on test2: https://test2.wikipedia.org/w/index.php?title=User:Hu%C3%B1vre%C3%BCs/Timeline

Other information (browser name/version, screenshots, etc.): replacing "Gitar" with pretty much anything else works provided it is not a substring of "Gitar_boud", eg "Gitar2" works.

Event Timeline

Aklapper renamed this task from Entry in timeline is replaced by another one to Entry in timeline replaced by another one when legend text is a substring of other legend text.Sep 11 2022, 11:05 AM