Permalink
Browse files

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

saved. Thanks Jisse Reitsma
  • Loading branch information...
1 parent 2138f20 commit bebcec35aff7ea3f312d735e89d6f19dea3352c6 Jisse Reitsma committed with infograf768 Jan 25, 2013
Showing with 6 additions and 2 deletions.
  1. +5 −2 components/com_users/models/profile.php
  2. +1 −0 installation/CHANGELOG
@@ -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
@@ -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

0 comments on commit bebcec3

Please sign in to comment.