Daun, i do not want to be impolite: I haven't notice this behavior yet, but i would suggest you to create a ticket on plugin's repository.
Alecs On Thu, Oct 8, 2009 at 4:29 PM, Daum <[email protected]> wrote: > > I recently noticed that if you are using the sfGuardUser module > without any modifications and in your app.yml you have defined the > user profile class it will blank the users profile whenever you update > the users password(or permissions) via the module. > > I looked into this a bit more. I believe it is occurring because the > plugin's form sfGuardUserAdminForm checks to see if the profile class > exists, if so it will merge the form into the user form. However the > generator.yml has the following display line: > > "NONE": [username, password, > password_again] > "Permissions and groups": [is_active, is_super_admin, > sf_guard_user_group_list, sf_guard_user_permission_list] > > So the problem here is then the extra form fields from the user's > profile are not shown. When it posts, the user profile fields do no > post(as they are not displayed), it again merges the form and then > does a save on the profile(thus blanking it). If you have a required > profile field it will never allow you to save and return you with the > generic error The item has not been saved due to some errors. The > error will not show you which field is the problem as the profile is > not displaying. > > Has anyone noticed this? I am not sure of the best solution as if you > drop the display list in the generator.yml you'll lose your labels, > however it needs to be altered to allow the profile fields to be > displayed. > > Daum > > > > -- As programmers create bigger & better idiot proof programs, so the universe creates bigger & better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
