Redmine:问题自定义字段引发错误

问题描述

我为问题添加自定义字段,类型为 Link 并配置了 URL 模板(如 here 所述):

enter image description here

我希望用户输入的值作为任务 ID 将被格式化为模板,但是当我尝试对其进行测试时,这不起作用:

enter image description here

我查看了日志,但没有那么丰富的记录:

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 版本不兼容。

您应该使用此报告通过他们首选的沟通渠道联系插件作者,以便他们修复插件。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...