Fixed bug on wiki page when an author was deleted.

This commit is contained in:
Benjamin Meichsner 2010-06-14 23:00:09 +02:00
parent be321798a7
commit 833862df93

View file

@ -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"}