Skip to content

Commit

Permalink
Undefined size method for nil class
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Jul 18, 2024
1 parent a776c42 commit 574bf68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/hooks/redmine_dmsf/_view_mailer_issue.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<fieldset class="attachments"><legend><%= l(:label_dmsf_file_plural) %></legend>
<% issue.dmsf_files.each do |f| %>
<%= link_to h(f.name), static_dmsf_file_url(f, filename: f.name) %>
(<%= number_to_human_size(f.last_revision.size) %>)<br>
(<%= number_to_human_size(f.last_revision.size) if f.last_revision %>)<br>
<% end %>
</fieldset>
<% end %>
2 changes: 1 addition & 1 deletion app/views/hooks/redmine_dmsf/_view_mailer_issue.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<% if issue.dmsf_files.any? %>
---<%= l(:label_dmsf_file_plural).ljust(37, '-') %>
<% issue.dmsf_files.each do |f| %>
<%= f.name %> (<%= number_to_human_size(f.last_revision.size) %>)
<%= f.name %> (<%= number_to_human_size(f.last_revision.size) if f.last_revision %>)
<% end %>
<% end %>

0 comments on commit 574bf68

Please sign in to comment.