Open GoogleCodeExporter opened 9 years ago
I've managed to (maybe) get around this, but avoiding the call to
user->validate() and user->save();
Not sure what (if anything) this form uses from the user object.
From the Profile controller, update method:
-- = comment out
++ = add line
line 41ish:
if(isset($_POST['User']))
{
$model->attributes=$_POST['User'];
$profile->attributes=$_POST['Profile'];
--if($model->validate()&&$profile->validate()) {
++if($profile->validate()){
--$model->save();
$profile->save();
Yii::app()->user->setFlash('profileMessage',UserModule::t("Changes is saved."));
$this->redirect(array('/user/profile'));
} else $profile->validate();
}
Original comment by Ryan.Gre...@gmail.com
on 6 Jun 2011 at 3:48
Original issue reported on code.google.com by
JJHayes...@gmail.com
on 6 Apr 2011 at 6:08