Project

General

Profile

Actions

Defect #18346

closed

Extended Field Values that are nil produce an error

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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

Files

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

Updated by Mischa The Evil about 10 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.

Actions

Also available in: Atom PDF