* handle the two other cases of user modificaion.
authorWilfried Göesgens <willi@citadel.org>
Thu, 23 Oct 2008 21:18:59 +0000 (21:18 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 23 Oct 2008 21:18:59 +0000 (21:18 +0000)
webcit/useredit.c

index 9e2babafacbf8451b20ee9f535ffffaf469906b1..1f6093bd572a4b463d0e0266c9f70d1e299c1d6d 100644 (file)
@@ -588,9 +588,18 @@ void display_edituser(char *supplied_username, int is_new) {
        }
        else {
                UL = NewUserListOneEntry(Buf);
-               output_headers(1, 0, 0, 0, 1, 0);
-               DoTemplate(HKEY("userlist_detailview"), NULL, (void*) UL, CTX_USERLIST);
-               end_burst();
+               if (havebstr("edit_abe_button")) {
+                       display_edit_address_book_entry(username, UL->UID);
+               }
+               else if (havebstr("delete_button")) {
+                       delete_user(username);
+               }
+               else {
+                       output_headers(1, 0, 0, 0, 1, 0);
+                       DoTemplate(HKEY("userlist_detailview"), NULL, (void*) UL, CTX_USERLIST);
+                       end_burst();
+               }
+               DeleteUserListEntry(UL);
                
        }
        FreeStrBuf(&Buf);