]> code.citadel.org Git - citadel.git/blobdiff - webcit/tasks.c
MAILINGLIST: add facility to choose the default room email alias.
[citadel.git] / webcit / tasks.c
index a799794c6a8c71e5192309d0ece2ebdb91590b62..a58edbb7b99167c4b2fbefc36ddcf582be245aa9 100644 (file)
@@ -176,15 +176,13 @@ int tasks_RenderView_or_Tail(SharedMessageStatus *Stat,
 void display_edit_individual_task(icalcomponent *supplied_vtodo, long msgnum, char *from,
                        int unread, calview *calv)
 {
+       wcsession *WCC = WC;
        icalcomponent *vtodo;
        icalproperty *p;
        struct icaltimetype IcalTime;
-       time_t now;
        int created_new_vtodo = 0;
        icalproperty_status todoStatus;
 
-       now = time(NULL);
-
        if (supplied_vtodo != NULL) {
                vtodo = supplied_vtodo;
 
@@ -233,6 +231,11 @@ void display_edit_individual_task(icalcomponent *supplied_vtodo, long msgnum, ch
        wc_printf("<div class=\"boxcontent\">\n");
        wc_printf("<FORM METHOD=\"POST\" action=\"save_task\">\n");
        wc_printf("<div style=\"display: none;\">\n     ");
+
+       wc_printf("<input type=\"hidden\" name=\"go\" value=\"");
+       StrEscAppend(WCC->WBuf, WCC->CurRoom.name, NULL, 0, 0);
+       wc_printf("\">\n");
+
        wc_printf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
        wc_printf("<INPUT TYPE=\"hidden\" NAME=\"msgnum\" VALUE=\"%ld\">\n", msgnum);
        wc_printf("<INPUT TYPE=\"hidden\" NAME=\"return_to_summary\" VALUE=\"%d\">\n",
@@ -573,7 +576,7 @@ void save_individual_task(icalcomponent *supplied_vtodo, long msgnum, char* from
 
        /* Go back to wherever we came from */
        if (ibstr("return_to_summary") == 1) {
-               do_template("summary_page");
+               display_summary_page();
        }
        else {
                readloop(readfwd, eUseDefault);
@@ -723,7 +726,9 @@ int tasks_GetParamsGetServerCall(SharedMessageStatus *Stat,
                                 void **ViewSpecific, 
                                 long oper, 
                                 char *cmd, 
-                                long len)
+                                long len,
+                                char *filter,
+                                long flen)
 {
        strcpy(cmd, "MSGS ALL");
        Stat->maxmsgs = 32767;
@@ -750,6 +755,7 @@ InitModule_TASKS
                tasks_GetParamsGetServerCall,
                NULL,
                NULL,
+               NULL,
                tasks_LoadMsgFromServer,
                tasks_RenderView_or_Tail,
                tasks_Cleanup);