I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #2314

Internal error on custom field with no value

Added by Olivier Houdas over 5 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Major
Assignee:
Category:
Special column
Target version:
Start date:
13 Jun 2014
Due date:
% Done:

0%

Redmine version:
External issue:

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: &lt;/tr&gt;

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

Duplicates Extended Fields - Patch #2294: Error 500 with version 0.2.3 on Redmine 2.5.1 Closed 22 May 2014

Associated revisions

Revision 125 (diff)
Added by Andriy Lesyuk almost 3 years ago

Applied patch of Massimo Rossello (#2294, #2314 and #2366)

History

#1 Updated by Andriy Lesyuk over 5 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 about 5 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 almost 3 years ago

  • Duplicated by Patch #2294: Error 500 with version 0.2.3 on Redmine 2.5.1 added

#4 Updated by Andriy Lesyuk almost 3 years ago

  • Duplicated by deleted (Patch #2294: Error 500 with version 0.2.3 on Redmine 2.5.1)

#5 Updated by Andriy Lesyuk almost 3 years ago

  • Duplicates Patch #2294: Error 500 with version 0.2.3 on Redmine 2.5.1 added

#6 Updated by Andriy Lesyuk almost 3 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF

Terms of use | Privacy policy