app/views/spree/zoned/_countryselect.html.erb in spree_zoned-0.5.4 vs app/views/spree/zoned/_countryselect.html.erb in spree_zoned-0.5.5
- old
+ new
@@ -3,10 +3,10 @@
<%= select_tag 'id',
options_for_select( # common countries have negative id
Rails.application.config.commonCountriesForSelect +
[["-----------------", 0]] +
countrylist.map { |country| [country.name, country.id] },
- -214, # Unites States
+ (session[:zoned] && session[:zoned][:current_country]) || -214, # Unites States
),
:data => {
:remote => true,
:url => url_for(
:controller => "zoned",