Anonymous Login
2019-08-23 03:02 PDT

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001343v3.0 Release[All Projects] Generalpublic2013-08-28 11:17
Reporteropto 
Assigned Tocaseydk 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
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

-Relationships
+Relationships

+Notes

-Issue History
Date Modified Username Field Change
2013-06-30 05:06 opto New Issue
2013-07-25 21:05 caseydk Note Added: 0002966
2013-07-25 21:05 caseydk Status new => resolved
2013-07-25 21:05 caseydk Resolution open => fixed
2013-07-25 21:05 caseydk Assigned To => caseydk
2013-08-28 11:14 caseydk Fixed in Version => 3.0.0
2013-08-28 11:17 caseydk Status resolved => closed
+Issue History