完善日程事件附件

This commit is contained in:
2021-03-21 21:45:33 +08:00
parent decaabd448
commit 54bcc3b4de
2 changed files with 5 additions and 18 deletions
@@ -664,15 +664,12 @@ class EventController extends DefaultController
$options['accessclass'] = 'PUBLIC';
$options['access_class_options'] = CalendarService::getAccessClassOptions();
$attach['model'] = 'calendar_attachment';
$attach['path'] = 'calendar';
$attach['rows'] = AttachmentService::get($event['attachment']);
$attachment['rows'] = AttachmentService::get($event['attachment']);
$calendar = CalendarService::getCalendar($event['calendarid'], false);
$share = ShareService::getItem('event', $id);
return $this->render(array(
'attachList' => $attach,
'attachment' => $attachment,
'options' => $options,
'calendar' => $calendar,
'share' => $share,