From 9eaf1f20ef8d85f246966b0ebe9c891523b345df Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 10 Apr 2017 11:21:03 -0600 Subject: [PATCH] Thumbnails (and handling) of uploaded files on new entries that have not yet been saved --- calendar/inc/class.calendar_so.inc.php | 4 +++- calendar/inc/class.calendar_uiforms.inc.php | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index c2abc2f61c..425edafa8c 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -1342,7 +1342,7 @@ ORDER BY cal_user_type, cal_usre_id * @param int &$etag etag=null etag to check or null, on return new etag * @return boolean|int false on error, 0 if etag does not match, cal_id otherwise */ - function save($event,&$set_recurrences,&$set_recurrences_start=0,$change_since=0,&$etag=null) + function save(&$event,&$set_recurrences,&$set_recurrences_start=0,$change_since=0,&$etag=null) { if (isset($GLOBALS['egw_info']['user']['preferences']['syncml']['minimum_uid_length'])) { @@ -1632,6 +1632,8 @@ ORDER BY cal_user_type, cal_usre_id $this->participants($cal_id,$event['cal_participants'],!$cal_id ? false : $change_since); } // Custom fields + Api\Etemplate\Widget\Customfields::handle_files('calendar', $cal_id, $event); + foreach($event as $name => $value) { if ($name[0] == '#') diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index d07d8cfe10..df904f3ea0 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -1585,6 +1585,7 @@ class calendar_uiforms extends calendar_ui } } $content = array_merge($event,array( + 'cal_id' => $event['id'], 'link_to' => array( 'to_id' => $link_to_id, 'to_app' => 'calendar',