mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 23:58:54 +01:00
only year-align given date, not always use current year, if date is specified
This commit is contained in:
parent
d713925480
commit
7791528e4b
@ -197,7 +197,7 @@ class module_calendar_planner extends Module
|
||||
if ($arguments['sortby'] == 'yearly')
|
||||
{
|
||||
$arguments['sortby'] = 'month';
|
||||
$arguments['date'] = date('Y0101');
|
||||
$arguments['date'] = substr($arguments['date'],0,4).'0101';
|
||||
}
|
||||
if (isset($_GET['date'])) $arguments['date'] = $_GET['date'];
|
||||
if (empty($arguments['cat_id'])) $arguments['cat_id'] = 0;
|
||||
@ -209,7 +209,7 @@ class module_calendar_planner extends Module
|
||||
{
|
||||
unset($arguments['resources'][$index]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$params = $arguments;
|
||||
|
Loading…
Reference in New Issue
Block a user