微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 版本不兼容。

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?