Bug #2314
Internal error on custom field with no value
0%
Description
In our Redmine, there are some custom boolean fields which don’t have a value.
In this case, we get an internal error because of extended_queries_helper_patch.rb:
Completed 500 Internal Server Error in 1975.1ms
ActionView::Template::Error (undefined method `value' for nil:NilClass):
53: <%=Rails.logger.info "issuenumber: " + issue.id.to_s%>
54: <% inline_columns.each do |column| >
55: <%=Rails.logger.info "column: " + column.name.to_s%>
56: <%= content_tag 'td', column_content(column, issue), :class => column.respond_to?(:css_classes) ? column.css_classes : column.name %>
57: < end %>
58: </tr>
I have tried modifying line 27 of /lib/extended_queries_helper_patch.rb from
h(show_value(value))
to
unless value.nil?
h(show_value(value))
end
and it seems to work. What do you think of it?
Related issues
Associated revisions
History
#1 Updated by Andriy Lesyuk over 10 years ago
- Status changed from New to Open
- Priority changed from Normal to Major
Olivier, I think, you’ve made a good research of the issue! Thanks!
#2 Updated by Dariusz Kowalski over 10 years ago
Andriy Lesyuk wrote:
Olivier, I think, you’ve made a good research of the issue! Thanks!
Thanks, it’s help me
#3 Updated by Andriy Lesyuk about 8 years ago
- Duplicated by Patch #2294: Error 500 with version 0.2.3 on Redmine 2.5.1 added
#4 Updated by Andriy Lesyuk about 8 years ago
- Duplicated by deleted (Patch #2294: Error 500 with version 0.2.3 on Redmine 2.5.1)
#5 Updated by Andriy Lesyuk about 8 years ago
- Duplicates Patch #2294: Error 500 with version 0.2.3 on Redmine 2.5.1 added
#6 Updated by Andriy Lesyuk about 8 years ago
- Status changed from Open to Closed