From 1d413dd5bb454404be8ca42f2640a716b1c5f37f Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 25 Mar 2001 09:09:32 +0000 Subject: [PATCH] Don't set prefs here, pass the current value to form() --- addressbook/add.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/addressbook/add.php b/addressbook/add.php index 5ef488c364..99678bba07 100755 --- a/addressbook/add.php +++ b/addressbook/add.php @@ -39,13 +39,6 @@ } } - if ($phpgw_info["user"]["preferences"]["addressbook"]["autosave_category"] && $cat_id) { - $phpgw->preferences->delete("addressbook","default_category"); - $phpgw->preferences->add("addressbook","default_category",$cat_id); - $phpgw->preferences->save_repository(); - } - - if ($AddVcard){ Header("Location: " . $phpgw->link("/addressbook/vcardin.php")); } else if ($add_email) {