mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 00:39:19 +01:00
fixed loosing participants-status on edit after new account-selection
This commit is contained in:
parent
c5291e6fab
commit
d2eaa3f2b3
@ -839,6 +839,8 @@
|
|||||||
ExecMethod('calendar.uicalendar.index');
|
ExecMethod('calendar.uicalendar.index');
|
||||||
$GLOBALS['phpgw']->common->phpgw_exit();
|
$GLOBALS['phpgw']->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
|
// reading the old event-state, to preserver the participant status
|
||||||
|
$old_event = $l_cal['id'] ? $this->so->read_entry((int) $l_cal['id']) : False;
|
||||||
|
|
||||||
print_debug('Prior to fix_update_time()');
|
print_debug('Prior to fix_update_time()');
|
||||||
$this->fix_update_time($l_start);
|
$this->fix_update_time($l_start);
|
||||||
@ -928,10 +930,9 @@
|
|||||||
$part = Array();
|
$part = Array();
|
||||||
for($i=0;$i<count($parts);$i++)
|
for($i=0;$i<count($parts);$i++)
|
||||||
{
|
{
|
||||||
if (($accept_type = substr($parts[$i],-1,1)) == '0' || (int)$accept_type > 0)
|
// fetching the accept-type from the old version of the event
|
||||||
{
|
$accept_type = $old_event && isset($old_event['participants'][$parts[$i]]) ? $old_event['participants'][$parts[$i]] : 'U';
|
||||||
$accept_type = 'U';
|
|
||||||
}
|
|
||||||
$acct_type = $GLOBALS['phpgw']->accounts->get_type((int)$parts[$i]);
|
$acct_type = $GLOBALS['phpgw']->accounts->get_type((int)$parts[$i]);
|
||||||
if($acct_type == 'u')
|
if($acct_type == 'u')
|
||||||
{
|
{
|
||||||
|
@ -1283,7 +1283,7 @@
|
|||||||
$participants = explode(";", $GLOBALS['phpgw']->session->appsession("participants") );
|
$participants = explode(";", $GLOBALS['phpgw']->session->appsession("participants") );
|
||||||
for($_f_part=0; $_f_part<count($participants); $_f_part++)
|
for($_f_part=0; $_f_part<count($participants); $_f_part++)
|
||||||
{
|
{
|
||||||
$this->bo->add_attribute('participants','A',$participants[$_f_part]);
|
$this->bo->add_attribute('participants','U',$participants[$_f_part]);
|
||||||
}
|
}
|
||||||
// Add misc
|
// Add misc
|
||||||
$this->bo->add_attribute('participants','A',$this->bo->owner);
|
$this->bo->add_attribute('participants','A',$this->bo->owner);
|
||||||
|
Loading…
Reference in New Issue
Block a user