summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-04-13 16:53:38 +0200
committerBart Visscher <bartv@thisnet.nl>2012-04-13 21:13:58 +0200
commit7cf7d5c3dd1733fc936bdf51e8ab8af4ffd77836 (patch)
treefc783b8d0b458038ec0ca46ff8aa799c52d186d7 /apps
parent28e0d64edefb0156056d47e84de9a494f0236bea (diff)
downloadnextcloud-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.php11
-rw-r--r--apps/calendar/ajax/event/new.form.php1
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();
-?>