Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
262 views
in Technique[技术] by (71.8m points)

Redmine: issue custom field throws an error

I've added custom field for Issue with Link type and configured URL template (as described here):

enter image description here

I expect that user entered value as task ID will be formatted into template, but when I try to test it this not works:

enter image description here

I took a look into logs, but there is not so informative record:

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'

I guess, I'm working wrong with URL template or what?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The stacktrace indicates that the error is caused by your custom flock_notifications plugin. This plugin (or the version of the plugin you are using) might not be compatible with your version of Redmine.

You should contact the plugin author on their preferred communication channels with this report so that they might fix the plugin.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...