Closed (fixed)
Project:
Location
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Mar 2007 at 21:33 UTC
Updated:
18 Jul 2010 at 12:40 UTC
Jump to comment: Most recent file
The database allows 255 chars for city, street, etc, but FAPI tries to restrict this. No good reason to do that, IMO.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | location-DRUPAL-6--3_255_maxlength.patch | 1.82 KB | hutch |
| #5 | location-DRUPAL-6--3_no_maxlength.patch | 1.67 KB | dboulet |
| no_maxlength.patch | 1.73 KB | killes@www.drop.org |
Comments
Comment #1
ankur commentedApplied to DRUPAL-5 branch. Thanks for the patch.
Comment #2
(not verified) commentedComment #3
landry commented#maxlength=64 is still in use for those fields in 6.x. Reopening and reassigning. There's no good reason to limit the form field to 64 for name/street/additional/city when 255 is allowed in db...
Comment #4
bartezz commented+1 encountered this too and it's annoying :) for now working with webdeveloper toolbar in Firefox to unset the maxlength...
Comment #5
dboulet commentedNew patch for 6.x-3.x-dev.
Comment #6
yesct commentedcode looks good, just removes the lines as in the previously committed to 5.x patch. (I did not try to apply it to the current dev, I just looked at the patch)
I did check the cvs repository for 6 and those max lines are still in them, so it looks like this is needed.
Comment #7
hutch commentedTested patch in #5, applied cleanly ;-)
Comment #8
heine commentedAs the default #maxlength of a textfield is 128, you might want to keep the property and set it to 255.
Comment #9
hutch commentedTrue enough, here is a patch to do it that way, let the maintainer decide ;-)
Comment #10
yesct commentedis it 255 or 256? I'll go check.
Powered by Dreditor.
Comment #11
yesct commentedis it 255 or 256? I'll go check.
seems like 255. :)
is this the right place to check?
http://drupalcode.org/viewvc/drupal/contributions/modules/location/locat...
lines 401-404
Powered by Dreditor.
Comment #12
hutch commentedYep right place to check, on lines 48 - 75 for mysql and 401 - 404 for the update
255 for name, street, additional and city. province and postal_code are length 16, may as well apply those too.
On second thought province is autocomplete so perhaps should be left to 64 in case it interferes
And postal_code already is 16
Comment #13
rooby commentedThe original commit must have been lost at some point.
Committed to 5, 6 & 7.
http://drupal.org/cvs?commit=387906
http://drupal.org/cvs?commit=387904
http://drupal.org/cvs?commit=387902