summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/save.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-04-12 18:05:36 +0000
committerthomascube <thomas@roundcube.net>2011-04-12 18:05:36 +0000
commit3d8b54edf74792e3996d861a6a30c41d82976261 (patch)
tree25f62aa62851aebd12a98825b5c3e8b07d12ef73 /program/steps/addressbook/save.inc
parent12dac4911b91e80cf1d8c85ee8ad1ef191b630cb (diff)
Keep all submitted data if contact form validation fails (#1487865)
Diffstat (limited to 'program/steps/addressbook/save.inc')
-rw-r--r--program/steps/addressbook/save.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc
index 8949a239b..88fe98cd1 100644
--- a/program/steps/addressbook/save.inc
+++ b/program/steps/addressbook/save.inc
@@ -139,6 +139,7 @@ if (empty($a_record['name'])) {
if (!$CONTACTS->validate($a_record)) {
$err = (array)$CONTACTS->get_error() + array('message' => 'formincomplete', 'type' => 'warning');
$OUTPUT->show_message($err['message'], $err['type']);
+ $GLOBALS['EDIT_RECORD'] = $a_record; // store submitted data to be used in edit form
rcmail_overwrite_action($return_action);
return;
}