projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cad989
)
Default value for 'repeat until' date is one week after start date
author
Art Cancro
<ajc@citadel.org>
Tue, 30 Sep 2008 19:40:02 +0000
(19:40 +0000)
committer
Art Cancro
<ajc@citadel.org>
Tue, 30 Sep 2008 19:40:02 +0000
(19:40 +0000)
webcit/event.c
patch
|
blob
|
history
diff --git
a/webcit/event.c
b/webcit/event.c
index c8e60639db818da0fc6a82d77795bd2ef82395d3..5aab9dc3e48baa557f941feb747cdbbae2bb28f5 100644
(file)
--- a/
webcit/event.c
+++ b/
webcit/event.c
@@
-523,6
+523,10
@@
void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
);
wprintf(_("Repeat this event until "));
wprintf("</input>");
+
+ if (icaltime_is_null_time(recur.until)) {
+ recur.until = icaltime_add(t_start, icaldurationtype_from_int(604800));
+ }
display_icaltimetype_as_webform(&recur.until, "rruntil", 1);
wprintf("<br />\n");