diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-04-13 16:53:38 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-04-13 21:13:58 +0200 |
commit | 7cf7d5c3dd1733fc936bdf51e8ab8af4ffd77836 (patch) | |
tree | fc783b8d0b458038ec0ca46ff8aa799c52d186d7 /apps | |
parent | 28e0d64edefb0156056d47e84de9a494f0236bea (diff) | |
download | nextcloud-server-7cf7d5c3dd1733fc936bdf51e8ab8af4ffd77836.tar.gz nextcloud-server-7cf7d5c3dd1733fc936bdf51e8ab8af4ffd77836.zip |
Calendar: Also set repeat options when editing a non repeating event
Diffstat (limited to 'apps')
-rw-r--r-- | apps/calendar/ajax/event/edit.form.php | 11 | ||||
-rw-r--r-- | apps/calendar/ajax/event/new.form.php | 1 |
2 files changed, 9 insertions, 3 deletions
diff --git a/apps/calendar/ajax/event/edit.form.php b/apps/calendar/ajax/event/edit.form.php index a979836755b..98c22eb0206 100644 --- a/apps/calendar/ajax/event/edit.form.php +++ b/apps/calendar/ajax/event/edit.form.php @@ -235,7 +235,14 @@ if($repeat['repeat'] != 'doesnotrepeat'){ $tmpl->assign('repeat_bymonthday', $repeat['bymonthday']); $tmpl->assign('repeat_bymonth', $repeat['bymonth']); $tmpl->assign('repeat_byweekno', $repeat['byweekno']); +} else { + $tmpl->assign('repeat_month', 'monthday'); + $tmpl->assign('repeat_weekdays', array()); + $tmpl->assign('repeat_interval', 1); + $tmpl->assign('repeat_end', 'never'); + $tmpl->assign('repeat_count', '10'); + $tmpl->assign('repeat_weekofmonth', 'auto'); + $tmpl->assign('repeat_date', ''); + $tmpl->assign('repeat_year', 'bydate'); } $tmpl->printpage(); - -?>
\ No newline at end of file diff --git a/apps/calendar/ajax/event/new.form.php b/apps/calendar/ajax/event/new.form.php index e7d52c675de..838002a3a09 100644 --- a/apps/calendar/ajax/event/new.form.php +++ b/apps/calendar/ajax/event/new.form.php @@ -71,4 +71,3 @@ $tmpl->assign('repeat_weekofmonth', 'auto'); $tmpl->assign('repeat_date', ''); $tmpl->assign('repeat_year', 'bydate'); $tmpl->printpage(); -?> |