- Fixed form reloading on source change, broken in r4999

release-0.6
alecpl 13 years ago
parent 46285d4b56
commit 2dd2bf5012

@ -23,6 +23,12 @@ $CONTACTS = rcmail_contact_source(null, true, true);
$cid = get_input_value('_cid', RCUBE_INPUT_POST); $cid = get_input_value('_cid', RCUBE_INPUT_POST);
$return_action = empty($cid) ? 'add' : 'edit'; $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 // cannot edit record
if ($CONTACTS->readonly) { if ($CONTACTS->readonly) {
$OUTPUT->show_message('contactreadonly', 'error'); $OUTPUT->show_message('contactreadonly', 'error');

Loading…
Cancel
Save