# HG changeset patch # User Chris Cannam # Date 1395392851 0 # Node ID 1c7af51e94092b1d51ef5ac082b9d75fea93c40c # Parent abde837f1224f91b6932af17b75506a22ff9d294 Avoid showing institution "none" as busy diff -r abde837f1224 -r 1c7af51e9409 app/helpers/activities_helper.rb --- a/app/helpers/activities_helper.rb Fri Mar 21 08:59:41 2014 +0000 +++ b/app/helpers/activities_helper.rb Fri Mar 21 09:07:31 2014 +0000 @@ -138,7 +138,7 @@ e.event_author unless !e.respond_to?(:event_author) end.compact institutions = authors.map do |a| - if a.respond_to?(:ssamr_user_detail) and !a.ssamr_user_detail.nil? + if a.respond_to?(:ssamr_user_detail) and !a.ssamr_user_detail.nil? and a.ssamr_user_detail.institution_name != "none" a.ssamr_user_detail.institution_name end end