Calendar: Add default repeat values when editing a non-repeating event

remotes/origin/stable4
Bart Visscher 13 years ago
parent dab5531474
commit a33b757b19
  1. 12
      apps/calendar/ajax/editeventform.php

@ -243,6 +243,16 @@ if($repeat['repeat'] != 'doesnotrepeat'){
$tmpl->assign('repeat_bymonth', $repeat['bymonth']); $tmpl->assign('repeat_bymonth', $repeat['bymonth']);
$tmpl->assign('repeat_byweekno', $repeat['byweekno']); $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(); $tmpl->printpage();
?> ?>

Loading…
Cancel
Save