del

Comments

Anonymous’s picture

delete

TechnoBuddhist’s picture

I think I have the same problem as greenbeans;

When I'm on admin/content/node-type/profile/fields/field_address (my field is called address) and have the radio options selected in the 'required' column, so that the address fields are required fields then they are not required when it comes to registration.

There is no red asterisk(theme specific of course) on the user reg form to indicate they are required fields and they can be left blank and the form can be submitted with no warning.

<input type="text" maxlength="255" name="addresses[street]" id="edit-addresses-street" size="50" value="" class="form-text" />

should have the class 'required' added to become;

<input type="text" maxlength="255" name="addresses[street]" id="edit-addresses-street" size="50" value="" class="form-text required" />

I'll have a nosey through the code, but I doubt I'll find anything, I might not even be using the 'required' setting correctly.

TechnoBuddhist’s picture

I see now it looks like the cck module is responsible for doing the required bit, all the address module has to do is set the field to 'required' and cck does everything else.

Still looking at the code, I've never written code for drupal modules before, so it'll be a learning experience.

jantoine’s picture

Version: 6.x-1.05 » 6.x-1.x-dev
Status: Active » Fixed

I have tested required fields for both nodes and users and have found this to be fixed in the latest dev snapshot. I am therefore marking this as fixed.

Cheers,

Antoine

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Component: User interface » Code
Issue summary: View changes