stable
Clone or download
Read-only
fix: request #40454 Artifact titles ending with % break Gantt chart
When drawing a milestone in a Gantt chart, if the artifact title ends with a % it breaks the chart as it try to do a sprintf on it and it's not a valid string for sprintf To avoid this case, when building the milestone object, it escape all % by replacing them by %% *Testing:* With the sprint tracker: - create a Gantt char in the report with due date and end date set on end_date field - make start_date not required - create a sprint with a % at the end of the title -> Before this commit you should get an error with a 🥀 With this commit it should works Change-Id: Icefd4959cf08513feb262d48f4112f8ac44cd628
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/graphontrackersv5/include/graphic-library/GraphOnTrackersV5_Engine_Gantt.class.php | +1 | −1 | Go to diff View file |