spree/spree — Issue #997: Countries with no states error on checkout
Author: lilleyt
Created: 2012-01-19 17:51:20+00:00
State: open

If you have a country that doesn't define any states, the state dropdown still appears and still forces selection of a state (from set of US states).

Steps to reproduce:

* Go to https://demo.spreecommerce.com/
* Register or log in
* Add product to cart, go to checkout
* On Shipping and Billing step, choose a country with no states (such as Sweden) and set shipping = billiing
* Try to continue with checkout, errors on state

I have also seen this behavior on my installation which is Spree 0.70.3, Rails 3.1.3, Ruby 1.9.3p0.

There is some related discussion prior to this ticket at: https://groups.google.com/forum/#!topic/spree-user/eEGj4Sd5eF4