fix when in the preference the exercice is the older one, we cannot see the newer
This commit is contained in:
parent
799b3e690c
commit
49845a6946
1 changed files with 10 additions and 2 deletions
|
|
@ -68,7 +68,11 @@ if ( isset($_GET['f_id']))
|
|||
if (isset($_GET['ex']))
|
||||
{
|
||||
$limit_periode=$per->get_limit($_GET['ex']);
|
||||
$array['from_periode']=$limit_periode[0]->first_day();
|
||||
if ( $_GET['ex'] < $year)
|
||||
$array['from_periode']=$limit_periode[0]->first_day();
|
||||
else
|
||||
$array['to_periode']=$limit_periode[1]->last_day();
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -136,7 +140,11 @@ if ( isset($_REQUEST['pcm_val']))
|
|||
if (isset($_GET['ex']))
|
||||
{
|
||||
$limit_periode=$per->get_limit($_GET['ex']);
|
||||
$array['from_periode']=$limit_periode[0]->first_day();
|
||||
if ( $_GET['ex'] < $year)
|
||||
$array['from_periode']=$limit_periode[0]->first_day();
|
||||
else
|
||||
$array['to_periode']=$limit_periode[1]->last_day();
|
||||
|
||||
}
|
||||
/*
|
||||
* Add button to select another year
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue