Defect #18346

Extended Field Values that are nil produce an error

Added by Ivo Steinmann about 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:-
Resolution:Invalid Affected version:2.6.0

Description

If an extended field is not used by a tracker but is enabled in the issue overview, then an error is produced because the value of that field is nil

I appended a possible patch as file

In File: lib/extended_queries_helper_patch.rb:

if !column.custom_field.respond_to?(:visible_by?) || column.custom_field.visible_by?(issue.project, User.current)
value = issue.custom_field_values.detect{ |value| value.custom_field_id == column.custom_field.id }
+ if value.nil?
+ return nil
+ end
h(show_value(value))
else

issue.patch Magnifier (658 Bytes) Ivo Steinmann, 2014-11-14 01:21

History

#1 Updated by Mischa The Evil about 5 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Please don't post plugin issues here. Please, instead report it at the plugin authors site: http://projects.andriylesyuk.com/project/redmine/extended-fields.

Also available in: Atom PDF