diff options
-rw-r--r-- | CHANGELOG.txt | 3 | ||||
-rw-r--r-- | modules/contact/contact.pages.inc | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index e97215da1..4e0f43386 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,9 @@ Drupal 7.35, xxxx-xx-xx (development version) ----------------------- +- Fixed a bug in the Contact module which caused the global user object to have + the incorrect name and e-mail address during the remainder of the page + request after the contact form is submitted. Drupal 7.34, 2014-11-19 ---------------------- diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc index ba8918bf5..233818ce5 100644 --- a/modules/contact/contact.pages.inc +++ b/modules/contact/contact.pages.inc @@ -134,7 +134,7 @@ function contact_site_form_submit($form, &$form_state) { global $user, $language; $values = $form_state['values']; - $values['sender'] = $user; + $values['sender'] = clone $user; $values['sender']->name = $values['name']; $values['sender']->mail = $values['mail']; $values['category'] = contact_load($values['cid']); @@ -270,7 +270,7 @@ function contact_personal_form_submit($form, &$form_state) { global $user, $language; $values = $form_state['values']; - $values['sender'] = $user; + $values['sender'] = clone $user; $values['sender']->name = $values['name']; $values['sender']->mail = $values['mail']; |