Readloop remove special cases
[citadel.git] / webcit / tasks.c
index dc3fa2c1327979cd4842d4d39fa659c1bb225c90..adf758378e08cd549c26993ec61d1ba1be3770f6 100644 (file)
@@ -179,12 +179,9 @@ void display_edit_individual_task(icalcomponent *supplied_vtodo, long msgnum, ch
        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;
 
@@ -573,7 +570,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) {
-               summary();
+               do_template("summary_page");
        }
        else {
                readloop(readfwd, eUseDefault);
@@ -723,7 +720,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 +749,7 @@ InitModule_TASKS
                tasks_GetParamsGetServerCall,
                NULL,
                NULL,
+               NULL,
                tasks_LoadMsgFromServer,
                tasks_RenderView_or_Tail,
                tasks_Cleanup);