diff --git a/apps/calendar/ajax/event/new.form.php b/apps/calendar/ajax/event/new.form.php index f47cb6c3e2..91b85fff07 100755 --- a/apps/calendar/ajax/event/new.form.php +++ b/apps/calendar/ajax/event/new.form.php @@ -57,6 +57,7 @@ $tmpl->assign('repeat_byweekno_options', $repeat_byweekno_options); $tmpl->assign('repeat_bymonthday_options', $repeat_bymonthday_options); $tmpl->assign('repeat_weekofmonth_options', $repeat_weekofmonth_options); +$tmpl->assign('eventid', 'new'); $tmpl->assign('startdate', $start->format('d-m-Y')); $tmpl->assign('starttime', $start->format('H:i')); $tmpl->assign('enddate', $end->format('d-m-Y')); diff --git a/apps/calendar/ajax/events.php b/apps/calendar/ajax/events.php index f149e0d400..56fa51aaff 100755 --- a/apps/calendar/ajax/events.php +++ b/apps/calendar/ajax/events.php @@ -15,7 +15,7 @@ OCP\JSON::checkAppEnabled('calendar'); // Look for the calendar id $calendar_id = OC_Calendar_App::getCalendar($_GET['calendar_id'], false, false); if($calendar_id !== false){ - if(! is_numeric($calendar['userid']) && $calendar['userid'] != OCP\User::getUser()){ + if(! is_numeric($calendar_id['userid']) && $calendar_id['userid'] != OCP\User::getUser()){ OCP\JSON::error(); exit; } diff --git a/apps/calendar/templates/part.eventform.php b/apps/calendar/templates/part.eventform.php index b3bbf7a375..2d86ce4d31 100755 --- a/apps/calendar/templates/part.eventform.php +++ b/apps/calendar/templates/part.eventform.php @@ -9,7 +9,7 @@ echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid
  • t('Repeating'); ?>
  • - +
  • t('Share'); ?>
  • @@ -246,6 +246,6 @@ echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid
    //Attendees
    -->
    - inc('share.dropdown'); ?> + inc('share.dropdown'); } ?>
    diff --git a/apps/calendar/templates/share.dropdown.php b/apps/calendar/templates/share.dropdown.php index 356a8d4fab..20d4c19bc1 100755 --- a/apps/calendar/templates/share.dropdown.php +++ b/apps/calendar/templates/share.dropdown.php @@ -72,6 +72,6 @@ echo OCP\html_select_options($allgroups, array());
    - >
    - -
    + >
    + + \ No newline at end of file