MantisBT - v3.0 Release
View Issue Details
0001343v3.0 Release[All Projects] Generalpublic2013-06-30 05:062013-08-28 11:17
Reporteropto 
Assigned Tocaseydk 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version3.0.0 
Summary0001343: another place where end date = start + duration
Descriptiondo_task_aed does not respect the user's set date diff between start and end but resets end to start + duration at this place:

   if (isset($hdependencies) && '' != $hdependencies) {
        // there are dependencies set!
        $nsd = new w2p_Utilities_Date($obj->get_deps_max_end_date($obj));

        if (isset($start_date)) {
            $shift = $nsd->compare($start_date, $nsd);
            if ($shift < 1) {
                $obj->task_start_date = $nsd->format(FMT_DATETIME_MYSQL);
                $obj->task_start_date = $AppUI->formatTZAwareTime($obj->task_start_date, '%Y-%m-%d %T');

                $ned = new w2p_Utilities_Date($obj->task_start_date);
                $ned->addDuration($obj->task_duration, $obj->task_duration_type);
                $obj->task_end_date = $ned->format(FMT_DATETIME_MYSQL);

                $obj->store();
            }
        }


IMHO, the day difference between start and end should be preserved, see my argument in the other bug report.

Klaus
TagsNo tags attached.
Attached Files

Notes
(0002966)
caseydk   
2013-07-25 21:05   
Resolved similarly to 0001333:
https://github.com/web2project/web2project/commit/37190c5349584d530d653ee899a51226a8b3b412

Issue History
2013-06-30 05:06optoNew Issue
2013-07-25 21:05caseydkNote Added: 0002966
2013-07-25 21:05caseydkStatusnew => resolved
2013-07-25 21:05caseydkResolutionopen => fixed
2013-07-25 21:05caseydkAssigned To => caseydk
2013-08-28 11:14caseydkFixed in Version => 3.0.0
2013-08-28 11:17caseydkStatusresolved => closed