alecpl
2011-08-02 2dd2bf5012825b68612353ccb141d6b6a0bc61aa
- Fixed form reloading on source change, broken in r4999


1 files modified
6 ■■■■■ changed files
program/steps/addressbook/save.inc 6 ●●●●● patch | view | raw | blame | history
program/steps/addressbook/save.inc
@@ -23,6 +23,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');