Closed (fixed)
Project:
Content Profile
Version:
6.x-1.0-beta4
Component:
User registration module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2010 at 16:57 UTC
Updated:
12 Apr 2010 at 03:40 UTC
We have a custom module that implements hook_nodeapi(), and we noticed that when the user profile content type was being validated during registration, we were getting an empty array passed to us during the "validate" OP.
We've traced the problem to the call to node_validate() in content_profile_registration_user_register_validate(); it's not passing the $form array in the call. The attached patch fixes this.
| Comment | File | Size | Author |
|---|---|---|---|
| content_profile_registration_node_validate.patch | 454 bytes | guypaddock |
Comments
Comment #1
guypaddock commentedComment #2
fagoWell it doesn't as the form isn't the node form. node_validate() has $form as optional argument, so it should be fine that way.
Comment #3
guypaddock commentedSorry, but it has the same structure as the node form... if you can use CCK in the content type for the profile, which this module allows you to do, then CCK should have the ability to see the form.
As far as I know, there aren't any side effects to passing this along... plus, we need this patch for an upcoming installation profile, or we'll need to make a fork.
Comment #4
fagoVery polite.. Anyway, when its important to you, I can commit it. I hope it won't cause bug for other modules.
committed.
Comment #5
guypaddock commentedThank you. It's very much appreciated!