Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

# [#28841] Username modification in frontend (Profile Edit) is not

saved. Thanks Jisse Reitsma
  • Loading branch information...
commit bebcec35aff7ea3f312d735e89d6f19dea3352c6 1 parent 2138f20
Jisse Reitsma authored infograf768 committed
View
7 components/com_users/models/profile.php
@@ -242,8 +242,11 @@ public function save($data)
$data['email'] = $data['email1'];
$data['password'] = $data['password1'];
- // Unset the username so it does not get overwritten
- unset($data['username']);
+ // Unset the username if it should not be overwritten
+ if (!JComponentHelper::getParams('com_users')->get('change_login_name'))
+ {
+ unset($data['username']);
+ }
// Unset the block so it does not get overwritten
unset($data['block']);
View
1  installation/CHANGELOG
@@ -30,6 +30,7 @@ $ -> Language fix or change
# [#29998] Problem with grid sort. Thanks Zhevron
# [#30021] *Wrong parameters for Articles Category List layout
# [#30023] Faster sorting for languages. Thanks Gary.
+ # [#28841] Username modification in frontend (Profile Edit) is not saved. Thanks Jisse Reitsma
24-Jan-2013 Jean-Marie Simonet
$ Updating installation lang file: aa-AA, de-DE, es-ES, hr-HR, lv-LV, ug-CN, vi-VN, zh-TW
Please sign in to comment.
Something went wrong with that request. Please try again.