Calendar: Fix bug in iCal import that gave bad calendar owner value

This commit is contained in:
nathan 2023-02-06 16:23:39 -07:00
parent 2c15e2f8ef
commit 95a4b319bb
2 changed files with 6 additions and 1 deletions

View File

@ -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()

View File

@ -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))
{