agileware-jp / redmine_issue_templates

Redmine Issue Template. Pull requests, reporting issues, stars and sponsoring are always welcome!
https://www.redmine.org/plugins/redmine_issue_templates
GNU General Public License v2.0
65 stars 28 forks source link

Issue editing templates #80

Open kibotu21 opened 11 months ago

kibotu21 commented 11 months ago

Summary

Issue editing templates

Description

After the update we get the following error message. We cannot edit templates.

[32mred5_redmine |[0m I, [2023-07-29T11:31:23.507338 #1] INFO -- : Processing by AccountController#login as HTML [32mred5_redmine |[0m I, [2023-07-29T11:31:23.507416 #1] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"Hi//HkgnUV0xsddla+YGv2oCTE+Mc4Tc1t2ti2ICoThSrR5ZEc8Iwq8CAw1HLsJL15MFH7g40wmXMyixcWECxw==", "back_url"=>"/projects/__________________________test/issue_templates", "username"=>"user", "password"=>"[FILTERED]", "login"=>"Login"} [32mred5_redmine |[0m I, [2023-07-29T11:31:23.510747 #1] INFO -- : Current user: anonymous [32mred5_redmine |[0m I, [2023-07-29T11:31:23.517818 #1] INFO -- : Successful authentication for 'user' from 192.168.0.10 at 2023-07-29 11:31:23 UTC [32mred5_redmine |[0m I, [2023-07-29T11:31:23.554399 #1] INFO -- : Redirected to https://testsystem.abcd.abcd.com/projects/__________________________test/issue_templates [32mred5_redmine |[0m I, [2023-07-29T11:31:23.554627 #1] INFO -- : Completed 302 Found in 47ms (ActiveRecord: 16.8ms | Allocations: 18329) [32mred5_redmine |[0m I, [2023-07-29T11:31:23.632831 #1] INFO -- : Started GET "/projects/__________________________test/issue_templates" for 192.168.0.10 at 2023-07-29 11:31:23 +0000 [32mred5_redmine |[0m I, [2023-07-29T11:31:23.633985 #1] INFO -- : Processing by IssueTemplatesController#index as HTML [32mred5_redmine |[0m I, [2023-07-29T11:31:23.634100 #1] INFO -- : Parameters: {"project_id"=>"__________________________test"} [32mred5_redmine |[0m I, [2023-07-29T11:31:23.640331 #1] INFO -- : Current user: user (id=1118) [32mred5_redmine |[0m I, [2023-07-29T11:31:23.718849 #1] INFO -- : Rendered plugins/redmine_issue_templates/app/views/issue_templates/index.html.erb within layouts/base (Duration: 22.8ms | Allocations: 9478) [32mred5_redmine |[0m I, [2023-07-29T11:31:23.755683 #1] INFO -- : Rendered layout layouts/base.html.erb (Duration: 59.6ms | Allocations: 24337) [32mred5_redmine |[0m I, [2023-07-29T11:31:23.763494 #1] INFO -- : Completed 200 OK in 129ms (Views: 52.6ms | ActiveRecord: 33.1ms | Allocations: 48995) [32mred5_redmine |[0m I, [2023-07-29T11:31:26.099372 #1] INFO -- : Started GET "/projects/__________________________test/issue_templates/new" for 192.168.0.10 at 2023-07-29 11:31:26 +0000 [32mred5_redmine |[0m I, [2023-07-29T11:31:26.100776 #1] INFO -- : Processing by IssueTemplatesController#new as HTML [32mred5_redmine |[0m I, [2023-07-29T11:31:26.101096 #1] INFO -- : Parameters: {"project_id"=>"__________________________test"} [32mred5_redmine |[0m I, [2023-07-29T11:31:26.105875 #1] INFO -- : Current user: user (id=1118) [32mred5_redmine |[0m I, [2023-07-29T11:31:26.150755 #1] INFO -- : Rendered plugins/redmine_issue_templates/app/views/issue_templates/new.html.erb within layouts/base (Duration: 29.4ms | Allocations: 12935) [32mred5_redmine |[0m I, [2023-07-29T11:31:26.151288 #1] INFO -- : Rendered layout layouts/base.html.erb (Duration: 29.7ms | Allocations: 12963) [32mred5_redmine |[0m I, [2023-07-29T11:31:26.151818 #1] INFO -- : Completed 500 Internal Server Error in 50ms (ActiveRecord: 3.0ms | Allocations: 21967) [32mred5_redmine |[0m F, [2023-07-29T11:31:26.153562 #1] FATAL -- : [32mred5_redmine |[0m ActionView::Template::Error (undefined methodrelated_link' for #<IssueTemplate id: nil, title: nil, project_id: 1, tracker_id: nil, author_id: 1118, note: nil, description: nil, enabled: false, created_on: nil, updated_on: nil, issue_title: nil, position: 1, is_default: false, enabled_sharing: false, checklist_json: nil, builtin_fields_json: nil>): [32mred5_redmine |[0m 123: label: l(:issue_template_note), style: 'overflow:auto;' %> [32mred5_redmine |[0m 124:

[32mred5_redmine |[0m 125: [32mred5_redmine |[0m 126:

<%= f.text_field :related_link, type: 'url', [32mred5_redmine |[0m 127: size: 70, label: l(:issue_template_related_link, default: 'Related link') %> [32mred5_redmine |[0m 128: <a class='icon icon-help template-help' title='<%= l(:help_for_this_field) %>' [32mred5_redmine |[0m 129: data-template-help-target='related_link_help_content' [32mred5_redmine |[0m
[32mred5_redmine |[0m lib/redmine/views/labelled_form_builder.rb:33:in text_field' [32mred5_redmine |[0m plugins/redmine_issue_templates/app/views/issue_templates/_form.html.erb:126 [32mred5_redmine |[0m plugins/redmine_issue_templates/app/views/issue_templates/new.html.erb:13 [32mred5_redmine |[0m app/helpers/application_helper.rb:1483:inlabelled_form_for' [32mred5_redmine |[0m plugins/redmine_issue_templates/app/views/issue_templates/new.html.erb:9 [32mred5_redmine |[0m plugins/redmine_issue_templates/app/controllers/issue_templates_controller.rb:49:in new' [32mred5_redmine |[0m lib/redmine/sudo_mode.rb:61:insudo_mode'`

Environment

Environment: Redmine version 5.0.4.stable Ruby version 3.1.3-p185 (2022-11-24) [x86_64-linux] Rails version 6.1.7 Environment production Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp Redmine settings: Redmine theme Gitmike SCM: Subversion 1.14.1 Mercurial 5.6.1 Bazaar 3.1.0 Git 2.30.2 Filesystem
Redmine plugins: easy_baseline 2.0 easy_gantt 2.0 easy_gantt_pro 2.0 easy_mindmup 2.0 easy_wbs 2.0 redmine_drawio 1.4.5 redmine_issue_templates 1.1.1 redmineup_tags 2.0.12

github-actions[bot] commented 11 months ago

Thank you for contributing to Redmine Issue Templates plugin!' first issue