Closed (fixed)
Project:
Profile Checkboxes
Version:
6.x-2.2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
25 Jan 2011 at 16:29 UTC
Updated:
19 Jan 2012 at 19:37 UTC
Hey there,
I have noticed that the multiple checkboxes fields i have set in my Profile, and have displayed on my registration form aren't saving to the database (i am checking the {profile_fields} table). Is there something i am missing here? Or any other explanation as to why this is happening?
Thanks
Craig
Comments
Comment #1
johnhanley commentedThanks for bringing this to my attention. I'm not sure how this slipped past me or why it wasn't discovered sooner.
I have identified the source of the problem and will have a new development snapshot available soon.
John
Comment #2
barber75 commentedHey!
I dug around the code, and it seems it is related to the 'me' module. As, when grabbing the arg(1), it was passing my 'me' value instead of a physical uid. Hence, when writing to the database, it doesn't know for what user to save to, so doesn't get written. This is also the same for loading in set variables for a user....
I believe there is a patch for this right?
thanks for replying! Sorry, i meant to close this thread, but i got totally sidetracked!
cheers again
Craig
Comment #3
johnhanley commentedHi Craig,
Thanks for the additional information.
The development version has a fix for the me aliases module. However your bug report revealed another problem that needs to be corrected as well. I'll be checking in a fix within the next couple of days and will update this issue at that time.
Thanks again,
John
Comment #4
seahostler commentedSubscribing. :) I had the me module installed, as well. Thanks for rocking on this, John.
Comment #5
johnhanley commentedComment #6
iLLin commentedShouldn't your uid lookup come from the account passed with the form?
Reason why I bring this up is if I call the form myself on w/e page I want, your code doesn't work as it's look towards the URL. For instance:
Thoughts on this?
Comment #7
iLLin commentedAlso if an admin was editing a form, this wouldn't work either.
Comment #8
johnhanley commented@iLLin,
I took your advice and made the indicated change--thanks!
@barber75,
The issue you originally reported has been fixed as well.
If you and anyone else could kindly test the newest dev snapshot. I believe this version is ready for release.
Regards,
John
Comment #9
savedario commentedThanks for fixing this.
I installed the dev version and ran update.php.
It even picked up multi-choice values that were saved but not displayed.
Comment #10
johnhanley commentedFixed in the 6.x-2.0 release.
Comment #11
nnevillafter debugging i found that data from multicheckboxes save into users table but module logic based on that data save into profile_values table.
to fix it i've added implementation of hook_user to my module:
so multiple checkboxes values save correctly now
Comment #12
johnhanley commentedThanks for your contribution, but unless you're submitting a patch for Profile Checkboxes this issue is still closed.