Closed (fixed)
Project:
Location
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2008 at 16:08 UTC
Updated:
27 Jun 2010 at 09:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
seanrFYI, the field referenced by the error is location_settings[multiple][add] which has a default value of 3.
Comment #2
garbanzito commentedthis validation glitch also occurs for actions such as deleting a content type whose maximum is set to zero; deletes probably shouldn't try to validate form values in the first place
Comment #3
aterchin commentedYes, I agree this is a big one. Had to disable location module in order to do any exporting/importing of content types.
Comment #4
mlncn commentedNot the ideal fix, but a fix nonetheless. Rather than changing the validation (which I agree is overzealous) this patch changes so the empty location forms default is also zero, not three.
Comment #5
seanrI think I had tried setting it to zero and it still didn't work even then.
Comment #6
mlncn commentedThis patch is working for us, including for importing content types.
Comment #7
socialnicheguru commentedsubscribing... thanks
Comment #8
aterchin commentedWorks for adding, importing, and exporting for me too.
Comment #9
mlncn commentedIn that case... ready to be committed.
Comment #10
bdragon commentedFixed in DRUPAL-5--3, DRUPAL-6--3, and HEAD.
The check itself was faulty, with max 0 it shouldn't even care what add is.
http://drupal.org/cvs?commit=163185
http://drupal.org/cvs?commit=163186
http://drupal.org/cvs?commit=163187
Comment #12
kristen polFor version 3.0, if you don't want to use the dev version, see http://drupal.org/node/376228#comment-1309960 for patch.
Comment #13
bdragon commentedSetting to fixed again, marking master.
Comment #15
bricef commentedWhen this development version will be packaged?
Comment #16
thebuckst0p commentedThis appears to be happening again with the latest version of Location. I'm exporting a content type with all the "# of location" fields set to 0, and when I import, it says "You can't show more empty location forms."
(and the same for creating a content type through the form, not just export/import)
Comment #17
thebuckst0p commentedIt seems to me that if the default is 3, the max has to be >=3, or else both should be 0. I'd prefer both be 0 myself, but the attached patch makes both 3.
Comment #18
yesct commentedComment #19
greggles3?
That seems kind of silly. Let's get them both to 1 or 0 since that is the most likely value that people really want.
Comment #20
thebuckst0p commentedThat works for me.
Updated the patch to set the default to 1. (Making it easy for the maintainer to commit.)
Comment #21
yesct commentedComment #22
hutch commentedPatch in #20 broke for me, this one sets 'max' and 'at once' to 1 as suggested in #19
On current CVS DRUPAL-6--3, freshly pulled
Comment #23
yesct commentedcode looks good to me, on visual inspection. Needs a person to apply the patch and try creating some locations (including importing, as that I think was the original issue).
Comment #24
kutter commentedI can confirm that this works in 6.x-3.x-dev.
I ran into this same problem with the 6.x-3.0 release, I installed the dev branch, and was able to import my content type, and create new nodes with location information just fine.
Comment #25
gregglesSeems like it's rtbc, then.
Comment #26
hutch commentedPlease find patch rerolled for revision 1.222.2.37 location.module attached. The same as earlier ones but on current cvs
Comment #27
rooby commentedThanks all.
Committed to 5, 6 & 7.
http://drupal.org/cvs?commit=379190
http://drupal.org/cvs?commit=379186
http://drupal.org/cvs?commit=379194