mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
Calendar/PM integration: now can show projects in calendar by multiple custom date fields
This commit is contained in:
parent
e917514713
commit
f7e6155b57
@ -787,7 +787,7 @@ class calendar_ui
|
||||
$event['non_blocking'] = (bool)$event['non_blocking'];
|
||||
|
||||
$matches = null;
|
||||
if(!(int)$event['id'] && preg_match('/^([a-z_-]+)([0-9]+)$/i',$event['id'],$matches))
|
||||
if(!(int)$event['id'] && preg_match('/^([a-z_-]+)([0-9]+)([:-].+)?$/i', $event['id'], $matches))
|
||||
{
|
||||
$app = $matches[1];
|
||||
$app_id = $matches[2];
|
||||
|
@ -456,7 +456,7 @@ class calendar_uilist extends calendar_ui
|
||||
}
|
||||
|
||||
$matches = null;
|
||||
if(!(int)$event['id'] && preg_match('/^([a-z_-]+)([0-9]+)$/i',$event['id'],$matches))
|
||||
if(!(int)$event['id'] && preg_match('/^([a-z_-]+)([0-9]+)([:-].+)?$/i', $event['id'], $matches))
|
||||
{
|
||||
$app = $matches[1];
|
||||
$app_id = $matches[2];
|
||||
@ -474,14 +474,14 @@ class calendar_uilist extends calendar_ui
|
||||
else
|
||||
{
|
||||
$is_private = !$this->bo->check_perms(Acl::READ,$event);
|
||||
$event['app'] = 'calendar';
|
||||
$event['app_id'] = $event['id'];
|
||||
}
|
||||
if ($is_private)
|
||||
{
|
||||
$event['class'] .= 'rowNoView ';
|
||||
}
|
||||
|
||||
$event['app'] = 'calendar';
|
||||
$event['app_id'] = $event['id'];
|
||||
|
||||
// Edit link
|
||||
if($app && $app_id)
|
||||
|
Loading…
Reference in New Issue
Block a user