From 6c8b0c304b4e6e266aafdf8d5f0c6704bd7ff71d Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Thu, 20 Aug 2015 00:55:47 +0300 Subject: [PATCH] Quick fix for proposition listing --- app/views/management/propositions/index.html.slim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/management/propositions/index.html.slim b/app/views/management/propositions/index.html.slim index f942a41..bab76cf 100644 --- a/app/views/management/propositions/index.html.slim +++ b/app/views/management/propositions/index.html.slim @@ -15,9 +15,9 @@ th.actions tbody - @events_by_proposer.each do |proposer, events| - - profile = proposer.personal_profile(@conference) + - profile = proposer.find_or_build_personal_profile(@conference) tr - th[colspan="5"]= link_to profile.name, [:management, @conference, proposer] + th[colspan="5"]= profile.try(:name) || proposer.email - events.each do |event| tr