From 066dbab4613c74b478637c4aa709d9513af139f8 Mon Sep 17 00:00:00 2001 From: Drake Date: Fri, 29 Sep 2006 17:54:05 +0000 Subject: [PATCH] Make Project Management asset task editor default start date of task to start date of project. --- docs/changelog/7.x.x.txt | 2 +- lib/WebGUI/Asset/Wobject/ProjectManager.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 6f0be43a1..4dc53141e 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -7,7 +7,7 @@ - Fixed some bugs in the SQLForm. Also refactored parts of the SQLForm to reduce the number of database queries and lessen the amount of data being uploaded when images are put in the form. (Martin Kamerbeek / Procolix) - + - change: PM asset task editor now defaults start date to start of project 7.0.8 - Fixed a couple of minor bugs with the default values of the Request diff --git a/lib/WebGUI/Asset/Wobject/ProjectManager.pm b/lib/WebGUI/Asset/Wobject/ProjectManager.pm index bb77b88f2..6631e9c8f 100644 --- a/lib/WebGUI/Asset/Wobject/ProjectManager.pm +++ b/lib/WebGUI/Asset/Wobject/ProjectManager.pm @@ -843,8 +843,8 @@ sub www_editTask { }); #Set some hidden variables to make it easy to reset data in javascript my $duration = $task->{duration}; - my $start = $dt->epochToSet($task->{startDate}); - my $end = $dt->epochToSet($task->{endDate}); + my $start = $dt->epochToSet($db->quickArray('SELECT startDate, startDate FROM PM_task WHERE projectId = ? ORDER BY sequenceNumber LIMIT 1', [$projectId])); + my $end = $start; my $dependant = $task->{dependants}; $var->{'form.header'} .= WebGUI::Form::hidden($session, {