Project

General

Profile

Actions

Defect #11467

closed

Internal error on Admin/Settings without trackers

Added by Thomas Pihl over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Category:
Administration
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

How to reproduce:
  • Start with empty db (db:migrate but do not load any default stuff)
  • login as admin
  • go to admin interface and select settings

Verified on debian/postgresql and in dev environ

Started GET "/settings" for 127.0.0.1 at 2012-07-20 11:29:31 +0200
Processing by SettingsController#index as HTML
   (0.5ms)  SELECT MAX("settings"."updated_on") AS max_id FROM "settings" 
  User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."type" IN ('User', 'AnonymousUser') AND "users"."id" = $1 AND (users.status = 1) LIMIT 1  [["id", 1]]
  Setting Load (0.5ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'attachment_max_size' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'per_page_options' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'activity_days_default' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'host_name' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'protocol' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'cache_formatted_text' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'wiki_compression' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'feeds_limit' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'file_max_size_displayed' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'diff_max_lines_displayed' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'repositories_encodings' LIMIT 1
  Rendered settings/_general.html.erb (42.0ms)
  Setting Load (0.5ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'default_language' LIMIT 1
  Setting Load (0.4ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'start_of_week' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'user_format' LIMIT 1
  Setting Load (0.4ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'gravatar_enabled' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'gravatar_default' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'thumbnails_enabled' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'thumbnails_size' LIMIT 1
  Rendered settings/_display.html.erb (10.1ms)
  Setting Load (0.4ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'unsubscribe' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'password_min_length' LIMIT 1
  Rendered settings/_authentication.html.erb (4.9ms)
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'default_projects_public' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'default_projects_modules' LIMIT 1
  Setting Load (0.4ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'sequential_project_identifiers' LIMIT 1
  Role Load (0.3ms)  SELECT "roles".* FROM "roles" WHERE "roles"."builtin" = 0 ORDER BY roles.position ASC
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'new_project_user_role_id' LIMIT 1
  Rendered settings/_projects.html.erb (8.3ms)
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'cross_project_issue_relations' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'issue_group_assignment' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'default_issue_start_date_to_creation_date' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'issue_done_ratio' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'issues_export_limit' LIMIT 1
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'gantt_items_limit' LIMIT 1
  Setting Load (0.8ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'issue_list_default_columns' LIMIT 1
  IssueCustomField Load (0.4ms)  SELECT "custom_fields".* FROM "custom_fields" WHERE "custom_fields"."type" IN ('IssueCustomField')
  Tracker Load (0.4ms)  SELECT "trackers".* FROM "trackers" ORDER BY position
  Rendered queries/_columns.html.erb (45.1ms)
  Rendered settings/_issues.html.erb (97.3ms)
  Rendered common/_tabs.html.erb (167.5ms)
  Rendered settings/edit.html.erb within layouts/admin (168.0ms)
Completed 500 Internal Server Error in 172ms

ActionView::Template::Error (undefined method `map' for nil:NilClass):
    4:       <%= label_tag "available_columns", l(:description_available_columns) %>
    5:       <br />
    6:       <%= select_tag 'available_columns',
    7:               options_for_select((query.available_columns - query.columns).collect {|column| [column.caption, column.name]}),
    8:               :multiple => true, :size => 10, :style => "width:150px",
    9:               :ondblclick => "moveOptions(this.form.available_columns, this.form.selected_columns);" %>
    10:     </td>
  app/models/query.rb:401:in `available_columns'
  app/views/queries/_columns.html.erb:7:in `_app_views_queries__columns_html_erb__1593462953669876080_52525080'
  app/views/settings/_issues.html.erb:25:in `block in _app_views_settings__issues_html_erb___1588804021434571264_54177160'
  app/views/settings/_issues.html.erb:1:in `_app_views_settings__issues_html_erb___1588804021434571264_54177160'
  app/views/common/_tabs.html.erb:24:in `block in _app_views_common__tabs_html_erb__2289916476959001246_70141822149460'
  app/views/common/_tabs.html.erb:23:in `each'
  app/views/common/_tabs.html.erb:23:in `_app_views_common__tabs_html_erb__2289916476959001246_70141822149460'
  app/helpers/application_helper.rb:238:in `render_tabs'
  app/views/settings/edit.html.erb:3:in `_app_views_settings_edit_html_erb___629126818868371524_70141823261220'
  app/controllers/settings_controller.rb:26:in `index'
Actions

Also available in: Atom PDF