Skip to content

Commit

Permalink
Fix defaulting of issue page time tracking range
Browse files Browse the repository at this point in the history
The start date should be defaulted to issue submission date.
The end date should be defaulted to today.

They were defaulted to Jan 1st of current year.

Fixes #20655
  • Loading branch information
vboctor committed Mar 3, 2016
1 parent b78d3ec commit 9379741
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions bugnote_stats_inc.php
Expand Up @@ -96,14 +96,14 @@
<tr class="row-2">
<td class="category" width="25%">
<?php
$t_filter = array();
$t_filter[FILTER_PROPERTY_FILTER_BY_DATE] = 'on';
$t_filter[FILTER_PROPERTY_START_DAY] = $t_bugnote_stats_from_d;
$t_filter[FILTER_PROPERTY_START_MONTH] = $t_bugnote_stats_from_m;
$t_filter[FILTER_PROPERTY_START_YEAR] = $t_bugnote_stats_from_y;
$t_filter[FILTER_PROPERTY_END_DAY] = $t_bugnote_stats_to_d;
$t_filter[FILTER_PROPERTY_END_MONTH] = $t_bugnote_stats_to_m;
$t_filter[FILTER_PROPERTY_END_YEAR] = $t_bugnote_stats_to_y;
$g_filter = array();
$g_filter[FILTER_PROPERTY_FILTER_BY_DATE] = 'on';
$g_filter[FILTER_PROPERTY_START_DAY] = $t_bugnote_stats_from_d;
$g_filter[FILTER_PROPERTY_START_MONTH] = $t_bugnote_stats_from_m;
$g_filter[FILTER_PROPERTY_START_YEAR] = $t_bugnote_stats_from_y;
$g_filter[FILTER_PROPERTY_END_DAY] = $t_bugnote_stats_to_d;
$g_filter[FILTER_PROPERTY_END_MONTH] = $t_bugnote_stats_to_m;
$g_filter[FILTER_PROPERTY_END_YEAR] = $t_bugnote_stats_to_y;
print_filter_do_filter_by_date( true );
?>
</td>
Expand Down

0 comments on commit 9379741

Please sign in to comment.