mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Add 'selected' day table for daily schedules
This commit is contained in:
parent
9a3ef9f726
commit
ddd13e8620
@ -39,6 +39,7 @@ class calendar_merge extends bo_merge
|
|||||||
'today',
|
'today',
|
||||||
'tomorrow',
|
'tomorrow',
|
||||||
'yesterday',
|
'yesterday',
|
||||||
|
'selected',
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -337,6 +338,10 @@ class calendar_merge extends bo_merge
|
|||||||
$date = $this->bo->date2ts($date);
|
$date = $this->bo->date2ts($date);
|
||||||
if(is_array($id) && $id['start'] && ($date < $id['start'] || $date > $id['end'])) return array();
|
if(is_array($id) && $id['start'] && ($date < $id['start'] || $date > $id['end'])) return array();
|
||||||
}
|
}
|
||||||
|
elseif ($plugin == 'selected')
|
||||||
|
{
|
||||||
|
$date = $id['start'];
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$date = strtotime($plugin);
|
$date = strtotime($plugin);
|
||||||
|
Loading…
Reference in New Issue
Block a user