From 833862df930fe939e49e6398749c0d2564bfbfa7 Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Mon, 14 Jun 2010 23:00:09 +0200 Subject: [PATCH] Fixed bug on wiki page when an author was deleted. --- app/views/pages/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/pages/show.html.haml b/app/views/pages/show.html.haml index 889693fb..68a7cdf8 100644 --- a/app/views/pages/show.html.haml +++ b/app/views/pages/show.html.haml @@ -27,7 +27,7 @@ - for version in @page.versions.reverse %li = link_to I18n.l(version.updated_at, :format => "%d.%m.%y %H:%M"), version_page_path(@page, :version => version.lock_version) - = "(#{User.find(version.updated_by).nick})" + = "(#{User.find_by_id(version.updated_by).try(:nick)})" - unless @page.children.empty? #subpages{:style => "display:none"}