Fix problem with task edit screen in PM not receiving the proper start and end dates
for its form fields when first opened.
This commit is contained in:
parent
33216321ec
commit
0be1331431
2 changed files with 10 additions and 6 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
- fix: mysql and mysqldump were transposed in upgrade.pl --help
|
- fix: mysql and mysqldump were transposed in upgrade.pl --help
|
||||||
- fix: adding Matrix listings committing the current version tag
|
- fix: adding Matrix listings committing the current version tag
|
||||||
- fix: user searches in task resource additions in PM not displaying right without both last name and first name present
|
- fix: user searches in task resource additions in PM not displaying right without both last name and first name present
|
||||||
|
- fix: task editor in PM not actually receiving start/end date information at first
|
||||||
|
|
||||||
7.0.9
|
7.0.9
|
||||||
- Removed the need for DateTime::Cron::Simple, which also added the ability
|
- Removed the need for DateTime::Cron::Simple, which also added the ability
|
||||||
|
|
|
||||||
|
|
@ -853,13 +853,16 @@ sub www_editTask {
|
||||||
$var->{'form.header'} .= WebGUI::Form::hidden($session, {
|
$var->{'form.header'} .= WebGUI::Form::hidden($session, {
|
||||||
-name=>"insertAt",
|
-name=>"insertAt",
|
||||||
-value=>$form->get("insertAt")
|
-value=>$form->get("insertAt")
|
||||||
});
|
});
|
||||||
#Set some hidden variables to make it easy to reset data in javascript
|
|
||||||
my $duration = $task->{duration};
|
my $duration = $task->{duration};
|
||||||
my $start = $dt->epochToSet($db->quickArray('SELECT startDate FROM PM_task WHERE projectId = ? ORDER BY sequenceNumber LIMIT 1', [$projectId]));
|
my ($startEpoch, $endEpoch) = $db->quickArray('SELECT startDate, startDate FROM PM_task WHERE projectId = ? ORDER BY sequenceNumber LIMIT 1', [$projectId]);
|
||||||
my $end = $start;
|
$startEpoch = $task->{startDate} if $task->{startDate};
|
||||||
|
$endEpoch = $task->{endDate} if $task->{endDate};
|
||||||
|
my ($start, $end) = ($dt->epochToSet($startEpoch), $dt->epochToSet($endEpoch));
|
||||||
my $dependant = $task->{dependants};
|
my $dependant = $task->{dependants};
|
||||||
|
|
||||||
|
# Set some hidden variables to make it easy to reset data in javascript
|
||||||
$var->{'form.header'} .= WebGUI::Form::hidden($session, {
|
$var->{'form.header'} .= WebGUI::Form::hidden($session, {
|
||||||
-name=>"orig_duration",
|
-name=>"orig_duration",
|
||||||
-value=>$duration
|
-value=>$duration
|
||||||
|
|
@ -875,7 +878,7 @@ sub www_editTask {
|
||||||
$var->{'form.header'} .= WebGUI::Form::hidden($session, {
|
$var->{'form.header'} .= WebGUI::Form::hidden($session, {
|
||||||
-name=>"orig_dependant",
|
-name=>"orig_dependant",
|
||||||
-value=>$dependant
|
-value=>$dependant
|
||||||
});
|
});
|
||||||
$var->{'form.name'} = WebGUI::Form::text($session,{
|
$var->{'form.name'} = WebGUI::Form::text($session,{
|
||||||
-name=>"name",
|
-name=>"name",
|
||||||
-value=>$task->{taskName},
|
-value=>$task->{taskName},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue