In the User Location configuration configuration (admin/user/settings Collection settings) I set City and Country fields to be 'Required', but they are not marked as Required on the collection form, either when Edit user profile or collect during registration.

Comments

n00b0101’s picture

Experienced the same thing... Changing
'#required' => ($a4 == 2),

to

'#required' => ($a4 = 2),

in location.module (function location_locationapi) seemed to work for me...

alexbk66-’s picture

Yeah, that's not a fix, it's a hack.
So I guess the bug is that $a4 doesn't get passed to location_locationapi()?

HobbyBlob.com

tomdavidson’s picture

Priority: Normal » Major

I have a different experience with the 'Required' setting being ignored. I have a large cck form that uses
CCK 6.x-2.9, Multistep 6.x-1.5, Clientside Validation 6.x-1.x-dev, and a few other contrib cck fields such as Date and Field Group.

One Location Field works as expected with the 'additional' field being set to 'allow' - the user is not required to enter data for the additional field and validation works fine.

Two other Location Fields do not work correctly with the 'additional' field set to 'allow' - the user is required to enter data for the additional field and validation fails for the entire Location:

Employer Address field is required.
Home Address field is required.

I have deleted these fields and recreated but do not know where else to troubleshoot.

Loikkk’s picture

@tomdavidson :
I have found how to go over this. Just Delete the field, turn off the location module and delete the location module and install it again.
I don't know why but everything work fine after this.

Give me a feedback

kourosh.a’s picture

Issue summary: View changes

any possible solution/fix yet?

gmario’s picture

In case someone else needs this info.

You have to set as required the node's field (otherwise the call to location_normalize_settings function set all location fields as optional)

location 7.x-3.6

hope this help

a si biri
gmario

legolasbo’s picture

Status: Active » Closed (outdated)

Closing old D6 issues as D6 is end of life