Mercurial > hg > soundsoftware-site
changeset 1499:1c7af51e9409 live
Avoid showing institution "none" as busy
author | Chris Cannam |
---|---|
date | Fri, 21 Mar 2014 09:07:31 +0000 |
parents | abde837f1224 |
children | 4d8c768855c6 |
files | app/helpers/activities_helper.rb |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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