forked from extern/egroupware
Calendar: Fix bug in iCal import that gave bad calendar owner value
This commit is contained in:
parent
2c15e2f8ef
commit
95a4b319bb
@ -303,7 +303,7 @@ class calendar_import_ical implements importexport_iface_import_plugin {
|
||||
'content' => array(
|
||||
'file_type' => 'ical',
|
||||
'charset' => $GLOBALS['egw_info']['user']['preferences']['common']['csv_charset'],
|
||||
'cal_owner' => $definition->plugin_options['cal_owner'] ?? $GLOBALS['egw_info']['user']['account_id']
|
||||
'cal_owner' => $definition->plugin_options['cal_owner'] ?: $GLOBALS['egw_info']['user']['account_id']
|
||||
),
|
||||
'sel_options' => array(
|
||||
'charset' => Api\Translation::get_installed_charsets()
|
||||
|
@ -281,6 +281,11 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
|
||||
*/
|
||||
protected static function format_owner($id, $title, $data = array())
|
||||
{
|
||||
if(!$id)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
static $contacts_obj = null;
|
||||
if(is_null($contacts_obj))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user