MantisBT - Third-party Modules
View Issue Details
0001030Third-party ModulesTimecardpublic2011-12-06 11:442014-04-05 17:43
Reporterjw 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
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

Notes
(0002337)
jw   
2011-12-06 12:25   
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');

Issue History
2011-12-06 11:44jwNew Issue
2011-12-06 12:25jwNote Added: 0002337
2014-04-05 17:43caseydkCategoryGeneral => Timecard