Skip to content

Commit

Permalink
fix: Set the from / to for graphs in the devices list #6262 (#6264)
Browse files Browse the repository at this point in the history
  • Loading branch information
laf authored and murrant committed Mar 24, 2017
1 parent 0c237ba commit a4be2a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/pages/devices.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
} else {
$is_selected = '';
}
$graphs_types .= '<option value="' . generate_url($vars, array('format' => 'graph_' . $avail_type)) . '" ' . $is_selected . '>' . $display_type . '</option>';
$graphs_types .= '<option value="' . generate_url($vars, array('format' => 'graph_' . $avail_type, 'from' => $vars['from'] ?: $config['time']['day'], 'to' => $vars['to'] ?: $config['time']['now'])) . '" ' . $is_selected . '>' . $display_type . '</option>';
}
$graphs_types .= '</select>';

Expand Down

0 comments on commit a4be2a4

Please sign in to comment.