When importing content types or when installing modules that create content types, a failure occurs if the default is other than 0.
Also needed for compatibility with Views Gallery and Ubercart.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | location defaults.patch | 725 bytes | nickbits |
Comments
Comment #1
stevestaso commentedThis issue created in response to #361199: Number of locations at once should default to 0?.
Comment #2
yesct commentedPlease clarify, is it the cck location field config, global setting, number of values (like that set at admin/content/node-type/meetings/fields/field_meetingplace)
Or, is this using the node locations module and under admin/content/node-type/testregnumber :
Locative information
Number of locations
Minimum number of locations: 0
The number of locations that are required to be filled in.
Maximum number of locations: 0
The maximum number of locations that can be associated.
Number of locations that can be added at once: 3
The number of empty location forms to show when editing.
and Number of locations that can be added at once: 3 is the change you want: a difference default value there that is used when creating new content types.
Or do you want settings for all three of these numbers?
Comment #3
nickbits commentedI too am having issues when installing the Views Gallery after the locations module has been installed. Specifically the error is:
I know this is what the original poster is saying and believe, I may be wrong, but when creating a new content type, the location information defaults to:
This last one should also be 0 by default.
Cheers,
Nick
Comment #4
hutch commentedYou can change the default permanently on line 1583 in location.module.
Comment #5
nickbits commentedHi Hutch, yep got that. But you are going to have to do that every time the module is updated, would be just as easy to change it and have it committed to the CVS.
Comment #6
hutch commentedThe way to get it into CVS is to provide a patch and tag it for consideration by the maintainer.
I'm not the maintainer of the location module ;-)
Comment #7
nickbits commentedPatch attached, but has already been submitted in previous issues!
Comment #8
ankur commentedI think this might've been fixed in a separate ticket. If I'm wrong, feel free to re-open this ticket.
Comment #9
ankur commented