Fix page version view for the case when a user has been deleted

This commit is contained in:
Patrick Gansterer 2017-09-26 13:11:58 +02:00
parent b3a6884cf1
commit 43294a40f5

View file

@ -4,7 +4,7 @@
%h3= t '.title_version'
%b= "#{format_datetime_timespec(@version.updated_at, t('.date_format'))}"
%ul
%li= t '.author', user: show_user(User.find(@version.updated_by))
%li= t '.author', user: show_user(User.find_by(id: @version.updated_by))
%li= link_to t('.view_current'), wiki_page_path(:permalink => @page.permalink)
%li= link_to t('.revert'), revert_page_path(@page, :version => @version.lock_version)