diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-02 10:57:35 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-02 10:57:35 +0000 |
| commit | 9048eac291a2151373421d42a80c1323a5956716 (patch) | |
| tree | f4ae9a76cb71feb3bfbc0f429d898f5b1bc2e9b8 | |
| parent | abb0aec0dfcff93ef41e93cf3e6775a93ddfec89 (diff) | |
- Fixed form reloading on source change, broken in r4999
git-svn-id: https://svn.roundcube.net/trunk@5005 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/steps/addressbook/save.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/addressbook/save.inc b/roundcubemail/program/steps/addressbook/save.inc index 43426d8f3..24b1a5da3 100644 --- a/roundcubemail/program/steps/addressbook/save.inc +++ b/roundcubemail/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'); |
