From 2dd2bf5012825b68612353ccb141d6b6a0bc61aa Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 2 Aug 2011 10:57:35 +0000 Subject: - Fixed form reloading on source change, broken in r4999 --- 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 43426d8f3..24b1a5da3 100644 --- a/program/steps/addressbook/save.inc +++ b/program/steps/addressbook/save.inc @@ -23,6 +23,12 @@ $CONTACTS = rcmail_contact_source(null, true, true); $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