如何解决Redmine:问题自定义字段引发错误
我为问题添加了自定义字段,类型为 Link
并配置了 URL 模板(如 here 所述):
我希望用户输入的值作为任务 ID 将被格式化为模板,但是当我尝试对其进行测试时,这不起作用:
我查看了日志,但没有那么丰富的记录:
NoMethodError (undefined method `format_value' for #<IssueUpdateListener:0x0000000006cfbdd0> Did you mean? format_date):
app/helpers/issues_helper.rb:494:in `show_detail'
app/helpers/issues_helper.rb:429:in `block in details_to_strings'
app/helpers/issues_helper.rb:415:in `each'
app/helpers/issues_helper.rb:415:in `details_to_strings'
plugins/flock_notifications/lib/issue_update_listener.rb:51:in `controller_issues_edit_after_save'
lib/redmine/hook.rb:63:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:63:in `each'
lib/redmine/hook.rb:63:in `block in call_hook'
lib/redmine/hook.rb:60:in `tap' lib/redmine/hook.rb:60:in `call_hook'
lib/redmine/hook.rb:93:in `call_hook'
app/controllers/issues_controller.rb:589:in `block in save_issue_with_child_records'
app/controllers/issues_controller.rb:575:in `save_issue_with_child_records'
app/controllers/issues_controller.rb:172:in `update'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'
我想,是我在使用 URL 模板时出错了还是什么?
解决方法
堆栈跟踪表明错误是由您的自定义 flock_notifications
插件引起的。此插件(或您使用的插件版本)可能与您的 Redmine 版本不兼容。
您应该使用此报告通过他们首选的沟通渠道联系插件作者,以便他们修复插件。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。