Anonymous Login
2019-12-10 19:53 PST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001030Third-party ModulesTimecardpublic2014-04-05 17:43
Reporterjw 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0001030: Combobox for tasks lists only tasks with Dependency Tracking = off
Description"Add Log" Function in "Weekly Time Card" View:

The combobox for tasks list only tasks with Dependency Tracking = off and Dynamic Task = false.

I'm not sure about Dynamic Task, but Tasks with Dependency Tracking should shown.

Testet with w2p 2.4 and timecard from svn trunc downloaded on 3. Dec 2012.
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0002337

jw (reporter)

The problem ist this condition in vw_timecard.php line 718:
$q->addWhere('t.task_dynamic = 0');

The column task_dynamic in table tasks is not a boolean!

I tried, wich values has this attribute in the follow combinations:

Dependency Tracking: off
Dynamic Task: false
Do not track this task: false
=> task_dynamic = 0

Dependency Tracking: on
Dynamic Task: false
Do not track this task: false
=> task_dynamic = 31

Dependency Tracking: off
Dynamic Task: true
Do not track this task: false
=> task_dynamic = 1

Dependency Tracking: off
Dynamic Task: false
Do not track this task: true
=> task_dynamic = 11

Dependency Tracking: on
Dynamic Task: false
Do not track this task: true
=> task_dynamic = 21

Solution is to change line 718 in modules/timecard/vw_timecard.php
from
$q->addWhere('t.task_dynamic = 0');
to
$q->addWhere('t.task_dynamic != 1');
+Notes

-Issue History
Date Modified Username Field Change
2011-12-06 11:44 jw New Issue
2011-12-06 12:25 jw Note Added: 0002337
2014-04-05 17:43 caseydk Category General => Timecard
+Issue History