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 @@