forked from extern/egroupware
fix for bug [ 1004555 ] Database error adding new calendar item:
- happend only if participants have been disabled via custom-fields - was caused by the code entering participants from matrixview
This commit is contained in:
parent
ce2045bae1
commit
c3717d0315
@ -2640,7 +2640,7 @@
|
|||||||
{
|
{
|
||||||
$details[$key] = $val['data'];
|
$details[$key] = $val['data'];
|
||||||
}
|
}
|
||||||
$details['participants'] = implode("\n",$details['participants']);
|
$details['participants'] = $details['participants'] ? implode("\n",$details['participants']) : '';
|
||||||
|
|
||||||
$details['link'] = $GLOBALS['phpgw_info']['server']['webserver_url'].'/index.php?menuaction=calendar.uicalendar.view&cal_id='.$event['id'];
|
$details['link'] = $GLOBALS['phpgw_info']['server']['webserver_url'].'/index.php?menuaction=calendar.uicalendar.view&cal_id='.$event['id'];
|
||||||
// if url is only a path, try guessing the rest ;-)
|
// if url is only a path, try guessing the rest ;-)
|
||||||
|
@ -1287,10 +1287,9 @@
|
|||||||
$this->bo->set_class(True);
|
$this->bo->set_class(True);
|
||||||
}
|
}
|
||||||
// Add participants from matrixview
|
// Add participants from matrixview
|
||||||
$participants = explode(";", $GLOBALS['phpgw']->session->appsession("participants") );
|
foreach(explode(';',$GLOBALS['phpgw']->session->appsession("participants")) as $part)
|
||||||
for($_f_part=0; $_f_part<count($participants); $_f_part++)
|
|
||||||
{
|
{
|
||||||
$this->bo->add_attribute('participants','U',$participants[$_f_part]);
|
if ($part) $this->bo->add_attribute('participants','U',$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