ajaykau / yii-user

Automatically exported from code.google.com/p/yii-user
0 stars 0 forks source link

Issue 24: revisited in AdminController #70

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Remove all Profile fields
2. Create a new user with Super User privs
or
3. Edit existing user to enable Super User privs

What is the expected output? What do you see instead?
Expected: email verification page. Result: Php error; Undefined index: Profile

What version of the product are you using? On what operating system?
r107

Please provide any additional information below.

/usr/share/www-swl/protected/modules/user/controllers/AdminController.php(106)
103         if(isset($_POST['User']))
104         {
105             $model->attributes=$_POST['User'];
106             $profile->attributes=$_POST['Profile'];

Original issue reported on code.google.com by steven.j...@gmail.com on 13 Mar 2011 at 11:41

GoogleCodeExporter commented 9 years ago
The same fix found in RegistrationController line 41 needs to be applied to:

- ProfileController line 43
- AdminController lines 77 and 106

Original comment by hcpsil...@gmail.com on 23 Apr 2011 at 12:28

GoogleCodeExporter commented 9 years ago
This is still an issue more than 1.5 years later. At least it's an easy fix...

Original comment by saulfaut...@gmail.com on 29 Dec 2012 at 11:58