mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
only year-align given date, not always use current year, if date is specified
This commit is contained in:
parent
fa5c680e31
commit
2fbae2e1f1
@ -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