aboutsummaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-12 23:15:19 -0400
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-12 23:15:19 -0400
commitdf2e788a1c29648d5d01f02166eef6cfb5a526c0 (patch)
treeea66f507aaa9b6236691fc4e6f063d3e4c4e9006 /apps/calendar/ajax
parenta7908ba76bd1b973a180eef4adbebbf2d9a1364f (diff)
downloadnextcloud-server-df2e788a1c29648d5d01f02166eef6cfb5a526c0.tar.gz
nextcloud-server-df2e788a1c29648d5d01f02166eef6cfb5a526c0.zip
fix calendarid in eventform and validation of calendarid
Diffstat (limited to 'apps/calendar/ajax')
-rw-r--r--apps/calendar/ajax/event/edit.form.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/calendar/ajax/event/edit.form.php b/apps/calendar/ajax/event/edit.form.php
index 6783462eaf1..8db0ba79406 100644
--- a/apps/calendar/ajax/event/edit.form.php
+++ b/apps/calendar/ajax/event/edit.form.php
@@ -195,6 +195,8 @@ if($data['repeating'] == 1){
}
if($access == 'owner'){
$calendar_options = OC_Calendar_Calendar::allCalendars(OC_User::getUser());
+}else{
+ $calendar_options = array(OC_Calendar_App::getCalendar($data['calendarid'], false));
}
$category_options = OC_Calendar_App::getCategoryOptions();
$repeat_options = OC_Calendar_App::getRepeatOptions();