* Calendar: copying of events now preservs quantity of resources

This commit is contained in:
Ralf Becker 2013-02-21 15:21:19 +00:00
parent 0c11206d91
commit 811ea4bd1a

View File

@ -498,7 +498,7 @@ class calendar_uiforms extends calendar_ui
foreach($participants as $id => &$response)
{
if($type == 'u' && $id == $event['owner']) continue;
calendar_so::split_status($status, $quantity, $role);
calendar_so::split_status($response, $quantity, $role);
// if resource defines callback for status of new status (eg. Resources app acknowledges direct booking acl), call it
$status = isset($this->bo->resources[$type]['new_status']) ? ExecMethod($this->bo->resources[$type]['new_status'],$id) : 'U';
$response = calendar_so::combine_status($status,$quantity,$role);