spree/spree — Issue #886: Country members not shown
Author: togg
Created: 2011-12-18 15:16:26+00:00
State: open

For a country based zone, the members are not visible in the frontend, using the latest git version

Country

Add Country

Rails Server output:

Started GET "/admin/zones/1/edit" for 93.233.104.86 at 2011-12-18 15:56:46 +0100
Processing by Spree::Admin::ZonesController#edit as HTML
Parameters: {"id"=>"1"}
Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" = ? LIMIT 1 [["id", "1"]]
Spree::User Load (0.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."id" = 1 LIMIT 1
Spree::Role Load (0.2ms) SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = 1
Deface: 3 overrides found for '/spree/layouts/admin'
Deface: 'own_admin_footer' matched 1 times with '#footer[data-hook]'
Deface: 'auth_admin_login_navigation_bar' matched 1 times with '[data-hook='admin_login_navigation_bar'], #admin_login_navigation_bar[data-hook]'
Deface: 'promo_admin_tabs' matched 1 times with '[data-hook='admin_tabs'], #admin_tabs[data-hook]'
Deface: 1 overrides found for 'spree/admin/shared/_configuration_menu'
Deface: 'add_configuration_line' matched 1 times with '[data-hook='admin_configurations_sidebar_menu']'
Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences"
Rendered vendor/gems/spree/core/app/views/spree/admin/shared/_configuration_menu.html.erb (296.5ms)
Rendered vendor/gems/spree/core/app/views/spree/shared/_error_messages.html.erb (0.8ms)
Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 1 ORDER BY "spree_zone_members"."id" DESC LIMIT 1
CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 1 ORDER BY "spree_zone_members"."id" DESC LIMIT 1
CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 1 ORDER BY "spree_zone_members"."id" DESC LIMIT 1
Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 1
Spree::Country Load (2.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY name
Rendered vendor/gems/spree/core/app/views/spree/admin/zones/_country_member.html.erb (122.0ms)
Rendered vendor/gems/spree/core/app/views/spree/admin/zones/_member_type.html.erb (131.0ms)
Spree::State Load (0.6ms) SELECT "spree_states".* FROM "spree_states" ORDER BY name
Rendered vendor/gems/spree/core/app/views/spree/admin/zones/_state_member.html.erb (16.4ms)
Rendered vendor/gems/spree/core/app/views/spree/admin/zones/_member_type.html.erb (21.1ms)
Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" ORDER BY name
Rendered vendor/gems/spree/core/app/views/spree/admin/zones/_zone_member.html.erb (2.8ms)
Rendered vendor/gems/spree/core/app/views/spree/admin/zones/_member_type.html.erb (7.1ms)
Rendered vendor/gems/spree/core/app/views/spree/admin/zones/_form.html.erb (197.0ms)
Rendered vendor/gems/spree/core/app/views/spree/admin/shared/_edit_resource_links.html.erb (2.2ms)
Rendered vendor/gems/spree/core/app/views/spree/admin/zones/edit.html.erb within /spree/layouts/admin (521.4ms)
Rendered vendor/gems/spree/core/app/views/spree/admin/shared/_head.html.erb (3.4ms)
Rendered vendor/gems/spree/core/app/views/spree/admin/shared/_tabs.html.erb (3.1ms)
Rendered vendor/gems/spree/core/app/views/spree/admin/shared/_alert.html.erb (0.0ms)
Completed 200 OK in 641ms (Views: 555.7ms | ActiveRecord: 9.9ms)

The zone.country_list command shows all the member countries from the rails console.