From 28aac0314ca82284c7debc2a6087523433b94005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Fri, 24 Apr 2015 10:15:05 +0200 Subject: [PATCH] Internal Error 500 when dmsf page is accessed #380 --- app/views/dmsf/show.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/dmsf/show.html.erb b/app/views/dmsf/show.html.erb index 2187c514..ac20e7ae 100644 --- a/app/views/dmsf/show.html.erb +++ b/app/views/dmsf/show.html.erb @@ -153,7 +153,11 @@ :title => subfolder.title }) %> <% end %> - <% @dir_links.each do |link| %> + <% @dir_links.each do |link| %> + <% unless (link.target_project && link.target_folder) %> + <% Rails.logger.error "Error: dmsf_link id #{link.id} has no target!" %> + <% next %> + <% end %> <%= render(:partial => 'dir', :locals => {