From 5b3ac324154b0d29e6e14db2b06fbc3636a3e708 Mon Sep 17 00:00:00 2001 From: alecpl Date: Sat, 2 Jul 2011 15:27:46 +0000 Subject: - Added addressbook source selector in contact create form --- program/steps/addressbook/save.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'program/steps/addressbook/save.inc') diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc index 19d8f8c7d..e1986efeb 100644 --- a/program/steps/addressbook/save.inc +++ b/program/steps/addressbook/save.inc @@ -24,6 +24,12 @@ $cid = get_input_value('_cid', RCUBE_INPUT_POST); $return_action = empty($cid) ? 'add' : 'edit'; +// Source changed, display the form again +if (!empty($_GET['_reload'])) { + rcmail_overwrite_action($return_action); + return; +} + // cannot edit record if ($CONTACTS->readonly) { $OUTPUT->show_message('contactreadonly', 'error'); -- cgit v1.2.3