From 72ba1e141acf05b5753ac8df758ad3f022288916 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 25 Mar 2001 07:36:21 +0000 Subject: [PATCH] Add selection of default category --- addressbook/preferences.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/addressbook/preferences.php b/addressbook/preferences.php index 80b21f4290..209c92a7d8 100644 --- a/addressbook/preferences.php +++ b/addressbook/preferences.php @@ -64,6 +64,13 @@ $phpgw->preferences->delete("addressbook","mainscreen_showbirthdays"); } + if ($cat_id) { + $phpgw->preferences->delete("addressbook","default_category"); + $phpgw->preferences->add("addressbook","default_category",$cat_id); + } else { + $phpgw->preferences->delete("addressbook","default_category"); + } + $phpgw->preferences->save_repository(True); Header("Location: " . $phpgw->link("/preferences/index.php")); } @@ -125,6 +132,11 @@ > + nextmatchs->alternate_row_color($tr_color);?> + + +