From d9e7a98a1ef0293488d98f47815bdb04d541c4de Mon Sep 17 00:00:00 2001 From: msdundar Date: Sun, 15 Jul 2018 00:19:24 +0300 Subject: [PATCH] Fixes #119 --- app/views/studies/articles/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/studies/articles/index.html.erb b/app/views/studies/articles/index.html.erb index e1c9554e5..0f2aafa5d 100644 --- a/app/views/studies/articles/index.html.erb +++ b/app/views/studies/articles/index.html.erb @@ -25,7 +25,7 @@ <%= link_to user_path(user) do %> <%= "#{user.identities.first.try(:first_name)} #{user.identities.first.try(:last_name)}" %> <% end %> - - <%= user.duties.tenure.first.unit.name %> + - <%= user.duties.tenure.first.try(:unit).try(:name) %> <% end %>