(sorry for the lengthy description. I just wanted to be clear about what's happening. I'll try to be briefer in the future, I promise!)

=== background ===

Modules
- 2008-Nov-24 content_profile module, along with its content_profile_registration module.
- 2008-Nov-03 autoassignrole module.

Setup
- I have two roles: Coach and Student.

autoassignrole setup: Assign from path:
- Coach Status: Enabled. Display method: Tabs on registration page. Path: coach-register. Title: Register as a Coach.
- Student Status: Enabled. Display method: Tabs on registration page. Path: student-register. Title: Register as a Student.

content_profile setup:
- I have two content types, one for each role: coachprofile, studentprofile.
- Coach role is given these permissions: create coachprofile content, edit own coachprofile content.
- Student role is given these permissions: create studentprofile content, edit own studentprofile content.
- For both content types, when editing them, under the Content Profile tab, I have checked "use on registration".
- For studentprofile, under the Edit tab, in the Content Profile section, I select "Use this content type as a content profile for users". I also select "(Student) student-register" for the Path.
- For coachprofile, under the Edit tab, in the Content Profile section, I select "Use this content type as a content profile for users". I also select "(Coach) coach-register" for the Path.

=== what happens ===
I navigate to: Create new account -> Register as coach, which is /user/coach-register.
Fields from both profiles appear on the registration form.
I fill in the required fields. My account is created.
Two profile nodes are created, a coachprofile and a studentprofile.

=== expected ===
To have only fields from the relevant profile content type appear on the registration form.
To have only relevant nodes created.

=== requests ===
Content Profile: Path settings should be observed by the registration form, and when the account is actually created.

In other words, if I have checked "(Student) student-register", I should not see fields from studentprofile and I should, and studentprofile node should not be created, if I am registering at /user/coach-register.

Comments

nadavoid’s picture

Project: Content Profile » Auto Assign Role
Component: User registration module » Code

(Changing project from content_profile to autoassignrole.)

nadavoid’s picture

This is fixed, using posted patches. See my comment here: http://drupal.org/node/337423#comment-1131270.

I guess we just need to get these patches rolled into a new dev release now.

gmclelland’s picture

Status: Active » Fixed

This should be fixed using the latest Dev Version in CVS - June 4th.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.