When saving a calendar event, set the method to PUBLISH
authorArt Cancro <ajc@citadel.org>
Tue, 27 Mar 2007 03:20:37 +0000 (03:20 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 27 Mar 2007 03:20:37 +0000 (03:20 +0000)
webcit/calendar.c
webcit/event.c

index ef3257f75063c2a3bf5306ebd338f2505c1bc85b..d135355c473e5cc13c3c9c87abf27cf19cd5974d 100644 (file)
@@ -65,7 +65,7 @@ void display_task(long msgnum) {
 /**
  * \brief Process a calendar object
  * ...at this point it's already been deserialized by cal_process_attachment()
- * \param cal teh calendar object
+ * \param cal the calendar object
  * \param recursion_level call stack depth ??????
  * \param msgnum number of the mesage in our db
  * \param cal_partnum of the calendar object ???? 
index af9ebe893149a611db52565dbda9e4d007625fbf..9c283c6e4bc201d0880c50d6ce828e4d20bd9b84 100644 (file)
@@ -675,6 +675,9 @@ STARTOVER:  lprintf(9, "Remove unlisted attendees\n");
                lprintf(9, "Encapsulating into full VCALENDAR component\n");
                encaps = ical_encapsulate_subcomponent(icalcomponent_new_clone(vevent));
 
+               /* Set the method to PUBLISH */
+               icalcomponent_set_method(encaps, ICAL_METHOD_PUBLISH);
+
                /** If the user clicked 'Save' then save it to the server. */
                lprintf(9, "Serializing it for saving\n");
                if ( (encaps != NULL) && (strlen(bstr("save_button")) > 0) ) {