I have 3 HABTM for a user. I broke the generic baked form up into 3 forms where a user can edit their selected options (forms are all checkboxes with no user input or ability to edit actual options) individually rather than big form. This form now gets submitted via Ajax and that's working fine. I added selections for each test user so every user has selections from each of the HABTM tables. So I was testing the form edit > load form > make changes > save > updated selections appear.....all good And after half hour of doing this 2 new weird things started happening! 1. In the form if a user selected the very last option in the form, saves it, goes back and tries to edit the selections to un-check the last selection and save it the save would not happen. It returns fine showing all the options selected but the very last option is still there...it will not return back to not selected. Checked the database and its always there. The only way to remove that selected option is if I select the option above it, then uncheck the last option. OptionA = selected OptionB = not selected OptionC = selected OptionD = selected (once this is selected the only way to un-select it would be to unselect OptionC also then it saves) 2. During testing this happened out of the blue after many edit / save / edit /save. I was testing saving the Users Systems (one of the HABTM tables) and all of a sudden when I updated the Users Systems selection all the Users other HABTM table option were deleted. No code was changed during the testing....and it started happening many saves. Ideas why this might be happening? Thanks, Dave
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
