Defect #982
完了when I click the issue_template on the sidebar ,displays error
100%
説明
when I click the issue_template on the sidebar ,displays error
error info like this ,I picked it in production.log ===================
Processing IssuesController#new (for 192.168.3.58 at 2012-03-23 17:15:36) [GET]
Parameters: {"project_id"=>"upnf", "action"=>"new", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/new
ActionView::TemplateError (Mysql::Error: Unknown column 'tracker_id' in 'where clause': SELECT * FROM `issue_templates` WHERE (tracker_id = 1 AND project_id = 32 AND enabled = 1) ) on line #11 of vendor/plugins/redmine_issue_templates/app/views/issue_templates/_issue_select_form.html.erb:
8: # default set templates of first tracker
9: tracker = @project.trackers0
10: group = []
11: tmpls = IssueTemplate.find(:all,
12: :conditions => ['tracker_id = ? AND project_id = ? AND enabled = ?',
13: tracker.id, @project.id, true])
14: if tmpls.size > 0
vendor/plugins/redmine_issue_templates/app/views/issue_templates/_issue_select_form.html.erb:11
lib/redmine/hook.rb:63:in `send'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:63:in `each'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:60:in `tap'
lib/redmine/hook.rb:60:in `call_hook'
lib/redmine/hook.rb:144:in `call_hook'
app/views/issues/_form.html.erb:1
app/views/issues/new.html.erb:7
app/helpers/application_helper.rb:880:in `labelled_tabular_form_for'
app/views/issues/new.html.erb:3
app/controllers/issues_controller.rb:138:in `new'
app/controllers/issues_controller.rb:137:in `new'
Rendering /usr/local/redmine-1.3/public/500.html (500 Internal Server Error)
=====================
Akiko Takano さんが約12年前に更新
- 担当者 を Akiko Takano にセット
Thank you for your reporting.
Have you executed some migration for this plugin? (Maybe you already did it...)
And if you don't mind, please let me know the result:
mysql> desc issue_templates;
Haru Iida さんが約12年前に更新
Hi Steven.
If old version of issue templates plugin (which was created by me) had installed before, this error might be occur.
There is no tracker_id in my version.
Try to re-migrate table.
rake db:migrate_plugins NAME=redmine_issue_templates VERSION=0 RAILS_ENV=production rake db:migrate_plugins RAILS_ENV=production