Closed (fixed)
Project:
Addresses
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2009 at 22:49 UTC
Updated:
17 Feb 2026 at 23:51 UTC
Jump to comment: Most recent
del
Comments
Comment #1
Anonymous (not verified) commenteddelete
Comment #2
TechnoBuddhist commentedI 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.
Comment #3
TechnoBuddhist commentedI 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.
Comment #4
jantoine commentedI 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
Comment #6
Anonymous (not verified) commented