MantisBT - v2.4 Release (Closed)
View Issue Details
0000774v2.4 Release (Closed)[All Projects] Generalpublic2011-04-11 00:582011-08-16 23:44
Reporterckwanhu 
Assigned Tocaseydk 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version2.4 
Summary0000774: Tasks of the Todo Gantt are created Twice
DescriptionI tried the Todo List and the Todo Gantt.

The tasks in the Todo Gantt are created twice (cf images).
TagsNo tags attached.
has duplicate 0000905closed caseydk Pending Requests duplicated tasks in user's TODO gantt chart 
Attached Fileszip BugTodoGantt.zip (64,295) 1969-12-31 16:00
https://bugs.web2project.net/file_download.php?file_id=194&type=bug

Notes
(0001870)
ckwanhu   
2011-04-19 06:41   
I have created more tasks after the upgrade.

The new tasks are still created twice. So I don't think this problem was caused by the upgrade.
(0001940)
ckwanhu   
2011-05-25 00:10   
Hello,

I think I may have found a pattern.

I am not sure, but it seems that it is hapenning because of sub projects.

I do have projects which are not subprojects, and for them, everything is all right.
But, if subprojects are involved. There is duplication.

It may be just a coincidence.
(0001979)
econ_dude   
2011-06-14 16:38   
I made showgtask(), in line 288 in /modules/tasks/gantt.php, conditional based on project_id and all of my gantt charts are displaying without duplicate tasks. I might not have tested all gantts that can present in w2p. Note: it looks like the gantt code (maybe from dP) could use some major refactoring, so this is more of a hack/fix until someone can clean it up.

if ($project_id) {
   showgtask($t);
}

http://forums.web2project.net/viewtopic.php?p=11746&highlight=#11746
(0002018)
vsonora   
2011-07-07 05:04   
I submited a pull request. Rewrote a couple of lines in both showgtask() and findgchild() and also two sections of gantt.php code related to tasks handling (there were some limes that accessed directly to gantt_arr variable so I tried to avoid that).
(0002042)
caseydk   
2011-07-17 20:43   
Resolved in r1991 via pull request;

Issue History
2011-04-11 00:58ckwanhuNew Issue
2011-04-11 00:58ckwanhuFile Added: BugTodoGantt.zip
2011-04-13 06:49caseydkProjectv2.3 Release (Closed) => v2.4 Release (Closed)
2011-04-19 06:41ckwanhuNote Added: 0001870
2011-05-25 00:10ckwanhuNote Added: 0001940
2011-06-14 16:38econ_dudeNote Added: 0001979
2011-07-07 05:04vsonoraNote Added: 0002018
2011-07-17 20:43caseydkNote Added: 0002042
2011-07-17 20:43caseydkStatusnew => resolved
2011-07-17 20:43caseydkResolutionopen => fixed
2011-07-17 20:43caseydkAssigned To => caseydk
2011-07-30 13:21caseydkRelationship addedhas duplicate 0000905
2011-08-16 23:44caseydkStatusresolved => closed
2011-08-16 23:44caseydkFixed in Version => 2.4