{"issue":{"milestone":null,"user":{"id":1214038,"login":"togg","url":"https://api.github.com/users/togg","avatar_url":"https://secure.gravatar.com/avatar/57eb1e4082fdfec563007149ad4dbbb4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"57eb1e4082fdfec563007149ad4dbbb4"},"created_at":"2011-12-18T15:16:26Z","title":"Country members not shown","updated_at":"2011-12-18T15:16:26Z","labels":[],"state":"open","id":2593753,"html_url":"https://github.com/spree/spree/issues/886","closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"For a country based zone, the members are not visible in the frontend, using the latest git version\r\n\r\n<pre>\r\n<div id=\"country_members\" data-hook=\"member\">\r\n  <fieldset id=\"\">\r\n    <legend>Country</legend>\r\n    <ul id=\"ul-nested-country\" class=\"member-list\">\r\n          </ul>\r\n    <p data-hook=\"buttons\">\r\n      <a href=\"#country_member\" class=\"button\" id=\"nested-country\"><span><img alt=\"Add\" src=\"/assets/admin/icons/add.png\" /> Add Country</span></a>\r\n\r\n    </p>\r\n  </fieldset>\r\n</div>\r\n</pre>\r\n\r\nRails Server output:\r\n\r\n<pre>\r\nStarted GET \"/admin/zones/1/edit\" for 93.233.104.86 at 2011-12-18 15:56:46 +0100\r\n  Processing by Spree::Admin::ZonesController#edit as HTML\r\n  Parameters: {\"id\"=>\"1\"}\r\n  Spree::Zone Load (0.1ms)  SELECT \"spree_zones\".* FROM \"spree_zones\" WHERE \"spree_zones\".\"id\" = ? LIMIT 1  [[\"id\", \"1\"]]\r\n  Spree::User Load (0.3ms)  SELECT \"spree_users\".* FROM \"spree_users\" WHERE \"spree_users\".\"id\" = 1 LIMIT 1\r\n  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\r\nDeface: 3 overrides found for '/spree/layouts/admin'\r\nDeface: 'own_admin_footer' matched 1 times with '#footer[data-hook]'\r\nDeface: 'auth_admin_login_navigation_bar' matched 1 times with '[data-hook='admin_login_navigation_bar'], #admin_login_navigation_bar[data-hook]'\r\nDeface: 'promo_admin_tabs' matched 1 times with '[data-hook='admin_tabs'], #admin_tabs[data-hook]'\r\nDeface: 1 overrides found for 'spree/admin/shared/_configuration_menu'\r\nDeface: 'add_configuration_line' matched 1 times with '[data-hook='admin_configurations_sidebar_menu']'\r\n  Spree::Preference Load (0.4ms)  SELECT \"spree_preferences\".* FROM \"spree_preferences\"\r\nRendered vendor/gems/spree/core/app/views/spree/admin/shared/_configuration_menu.html.erb (296.5ms)\r\nRendered vendor/gems/spree/core/app/views/spree/shared/_error_messages.html.erb (0.8ms)\r\n  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\r\n  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\r\n  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\r\n  Spree::ZoneMember Load (0.4ms)  SELECT \"spree_zone_members\".* FROM \"spree_zone_members\" WHERE \"spree_zone_members\".\"zone_id\" = 1\r\n  Spree::Country Load (2.2ms)  SELECT \"spree_countries\".* FROM \"spree_countries\" ORDER BY name\r\nRendered vendor/gems/spree/core/app/views/spree/admin/zones/_country_member.html.erb (122.0ms)\r\nRendered vendor/gems/spree/core/app/views/spree/admin/zones/_member_type.html.erb (131.0ms)\r\n  Spree::State Load (0.6ms)  SELECT \"spree_states\".* FROM \"spree_states\" ORDER BY name\r\nRendered vendor/gems/spree/core/app/views/spree/admin/zones/_state_member.html.erb (16.4ms)\r\nRendered vendor/gems/spree/core/app/views/spree/admin/zones/_member_type.html.erb (21.1ms)\r\n  Spree::Zone Load (0.2ms)  SELECT \"spree_zones\".* FROM \"spree_zones\" ORDER BY name\r\nRendered vendor/gems/spree/core/app/views/spree/admin/zones/_zone_member.html.erb (2.8ms)\r\nRendered vendor/gems/spree/core/app/views/spree/admin/zones/_member_type.html.erb (7.1ms)\r\nRendered vendor/gems/spree/core/app/views/spree/admin/zones/_form.html.erb (197.0ms)\r\nRendered vendor/gems/spree/core/app/views/spree/admin/shared/_edit_resource_links.html.erb (2.2ms)\r\nRendered vendor/gems/spree/core/app/views/spree/admin/zones/edit.html.erb within /spree/layouts/admin (521.4ms)\r\nRendered vendor/gems/spree/core/app/views/spree/admin/shared/_head.html.erb (3.4ms)\r\nRendered vendor/gems/spree/core/app/views/spree/admin/shared/_tabs.html.erb (3.1ms)\r\nRendered vendor/gems/spree/core/app/views/spree/admin/shared/_alert.html.erb (0.0ms)\r\nCompleted 200 OK in 641ms (Views: 555.7ms | ActiveRecord: 9.9ms)\r\n</pre>\r\n\r\nThe zone.country_list command shows all the member countries from the rails console.\r\n\r\n","number":886,"url":"https://api.github.com/repos/spree/spree/issues/886","comments":0,"assignee":null},"action":"opened"}