Commit b3b9f0fe authored by RobertPlummer's avatar RobertPlummer

[ADD] Defaults to tiki sheet history so that there is always a date selected

parent b1c5a598
......@@ -41,8 +41,16 @@ $history = $sheetlib->sheet_history( $_REQUEST['sheetId'] );
$smarty->assign_by_ref( 'history', $history );
$sheetIndexes = array();
if ( isset($_REQUEST['idx_0']) ) $sheetIndexes[0] = $_REQUEST['idx_0'];
if ( isset($_REQUEST['idx_1']) ) $sheetIndexes[1] = $_REQUEST['idx_1'];
if ( isset($_REQUEST['idx_0']) ) {
$sheetIndexes[0] = $_REQUEST['idx_0'];
} else {
$sheetIndexes[0] = 1; //this sets defalut for initial page load
}
if ( isset($_REQUEST['idx_1']) ) {
$sheetIndexes[1] = $_REQUEST['idx_1'];
} else {
$sheetIndexes[1] = 0; //this sets defalut for initial page load
}
//display the history picker if no sheets are defined
if ( count($sheetIndexes) > 1 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment