Closed (fixed)
Project:
Location
Version:
6.x-3.1-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2010 at 18:19 UTC
Updated:
2 Feb 2010 at 02:10 UTC
A user submitted a node with the province value "NY" and left the country field blank. The country field was set as required, so a drupal error was shown instructing him to enter a country. But a php warning was also shown, because there's no such file location/supported/location.ny.inc.
I think location_load_country() should call location_supported_countries() to check for valid input.
| Comment | File | Size | Author |
|---|---|---|---|
| location_load_country.patch | 620 bytes | mvc |
Comments
Comment #1
bdragon commentedFixed, thanks.
I decided to just do a file_exists() instead.
Also did some misc. cleanup of that function.
http://drupal.org/cvs?commit=316104
http://drupal.org/cvs?commit=316106
http://drupal.org/cvs?commit=316108