Content
View differences
Updated by Robin Wagner over 9 years ago
To reproduce:
\- In version 6.0.4 go to a project overview
\- add a teaser to the overview (on top)
\- upload a file (e.g. pdf or image)
\- save changes
\- after this changing the overview will lead to an “Internal Error”
**Client-Error:**
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your OpenProject administrator for assistance.
If you are the OpenProject administrator, check your log files for details about the error.
*
Server log:\*
F, [2016-10-26T15:25:59.525656 #1352] FATAL -- :
ActionView::Template::Error (undefined method `merge' for nil:NilClass):
22: <% for attachment in attachments %>
23: <p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%>
24: <%= h(" - #{attachment.description}") unless attachment.description.blank? %>
25: <span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
26: <%= link_to_remote icon_wrapper('icon-context icon-delete', l(:button_delete)),
27: :url => { :action => 'destroy_attachment', :attachment_id => attachment.id, :id => project.id },
28: :confirm => l(:text_are_you_sure),
app/helpers/removed_js_helpers_helper.rb:38:in `link_to_function'
app/middleware/reset_current_user.rb:47:in `call'
app/middleware/params_parser_with_exclusion.rb:40:in `call'
\- In version 6.0.4 go to a project overview
\- add a teaser to the overview (on top)
\- upload a file (e.g. pdf or image)
\- save changes
\- after this changing the overview will lead to an “Internal Error”
**Client-Error:**
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your OpenProject administrator for assistance.
If you are the OpenProject administrator, check your log files for details about the error.
*
Server log:\*
F, [2016-10-26T15:25:59.525656 #1352] FATAL -- :
ActionView::Template::Error (undefined method `merge' for nil:NilClass):
22: <% for attachment in attachments %>
23: <p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%>
24: <%= h(" - #{attachment.description}") unless attachment.description.blank? %>
25: <span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
26: <%= link_to_remote icon_wrapper('icon-context icon-delete', l(:button_delete)),
27: :url => { :action => 'destroy_attachment', :attachment_id => attachment.id, :id => project.id },
28: :confirm => l(:text_are_you_sure),
app/helpers/removed_js_helpers_helper.rb:38:in `link_to_function'
app/middleware/reset_current_user.rb:47:in `call'
app/middleware/params_parser_with_exclusion.rb:40:in `call'