Closed (fixed)
Project:
Location
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Nov 2008 at 18:17 UTC
Updated:
5 Dec 2011 at 19:35 UTC
Jump to comment: Most recent file
Comments
Comment #1
steveadamo commentedI have two content types, utulizing the Location module. One form (all fields set to required) is working perfectly. The other form (with a mix of required and non required) isnt requiring any of the flagged fields (nor is it showing the required designation *).
Comment #2
yesct commentedTagging.
Comment #3
steveadamo commentedSo it would seem that if you set the minimum number of locations (under Locative Information > Number of Locations), then the fields you have set as required on the form will indeed be required.
Comment #4
fletch11 commentedI don't think this is the case. If you vary the the number of locations and the fields set as required in the content type form this does not affect whether fields are required or not in location cck fields, but I could be wrong. This appears to be a bug in the location_cck module.
Comment #5
hefox commentedOne issue is cordinate chooser does not honor it's required status
Haven't tested it but changed mine here:
Relucant to make a patch because it's inelegant coding. I assume collect == 2 has a define associated with it right?
Comment #6
deviantintegral commentedRequired fields are working fine for me in the latest -dev release, with a mix of required / not required fields. Note that I had to make the entire CCK field marked as "required" for it to work.
Comment #7
yesct commentedComment #8
jdidelet commentedHi,
Sorry I have the last dev version (of 11 July 2010) and it's not working.
Comment #9
yesct commentedjdidelet, Please expand on "not working"; tell us what you expected to happen and what actually happened. Please give us step by step instructions for reproducing the problem. Thanks.
Comment #10
yesct commentedComment #11
jdidelet commentedI sent you 2 screenshots. I have a content type with location cck field who is required but when I create this content without location information, no error message appear.
Comment #12
deviantintegral commentedTry setting one of the Location fields as "Required" instead of "Allow".
Regardless, it looks like the UI for that form could use some attention.
Comment #13
jdidelet commentedAh yes you're right. The cck "Required" is not working but the required inside location cck field is working. Thanks !
Comment #14
kristen polI took the liberty of changing this to a support request and marking fixed.
Also, for those who need it, I figured out how to set this in php as well which I needed because several of my content types share the same location CCK field and the address fields are only required on some of these content types. I had a hard time finding this type of code anywhere though maybe it is out there somewhere!
Kristen
Comment #15
2ndmile commented#3 fixed it for me.