Loading...
 
Skip to main content

Gantt Chart with multiple dependencies is saved to database incorrectly

Status
Open
Subject
Gantt Chart with multiple dependencies is saved to database incorrectly
Version
20.x
Category
  • Bug
Feature
Gantt Chart
Resolution status
New
Submitted by
amorangi
Lastmod by
amorangi
Rating
(0)
Description

Multiple dependencies are saving back to database (from chart) without commas between dependencies. When reloaded of course the dependencies didn't work. Added a comma before save back to database fixed the problem.

Solution

In tiki/lib/wiki-plugins/wikiplugin_ganttchart.php line 616 (or so) change:

Copy to clipboard
$dependsIds .= $index;

to

Copy to clipboard
$dependsIds .= ($index == '') ? $index : ','.$index;
Importance
8
Easy to solve?
10 easy
Priority
80
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7197
Created
Wednesday 23 October, 2019 03:32:29 UTC
by amorangi
LastModif
Thursday 24 October, 2019 04:27:29 UTC


Show PHP error messages