diff --git a/app/views/moderation_mailer/update.text.haml b/app/views/moderation_mailer/update.text.haml index 189b81b6..dfdb36b6 100644 --- a/app/views/moderation_mailer/update.text.haml +++ b/app/views/moderation_mailer/update.text.haml @@ -4,7 +4,7 @@ new = render file: '/events/show' former = @event - @event = @event.versions.last.reify + @event = @event.previous_version if @event.previous_version prev = render file: '/events/show' @event = former diff --git a/app/views/orga_mailer/update.text.haml b/app/views/orga_mailer/update.text.haml index 22a0e00d..8b430ab7 100644 --- a/app/views/orga_mailer/update.text.haml +++ b/app/views/orga_mailer/update.text.haml @@ -4,7 +4,7 @@ new = render file: '/orgas/show' former = @orga - @orga = @orga.versions.last.reify + @orga = @orga.previous_version prev = render file: '/orgas/show' @orga = former