diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-04-12 18:05:36 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-04-12 18:05:36 +0000 |
| commit | e7622fad720a972df1e9d5ec8a70af4cedc51597 (patch) | |
| tree | 75748d2c549c45ad98c67655ab95c12dff5f4302 /roundcubemail/program/steps/addressbook/save.inc | |
| parent | 2fbb073c0f3e5e067969e5a9250876148e3d9b28 (diff) | |
Keep all submitted data if contact form validation fails (#1487865)
git-svn-id: https://svn.roundcube.net/trunk@4649 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook/save.inc')
| -rw-r--r-- | roundcubemail/program/steps/addressbook/save.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/addressbook/save.inc b/roundcubemail/program/steps/addressbook/save.inc index 8949a239b..88fe98cd1 100644 --- a/roundcubemail/program/steps/addressbook/save.inc +++ b/roundcubemail/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; } |
