diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-08-24 11:50:56 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-08-24 11:50:56 +0100 |
commit | a500ae3334dd1cbd8a46e2515857ad05a1a43e30 (patch) | |
tree | 8eb92537b9582aeffe7798336bbb92342ac33138 /app/helpers/link_to_helper.rb | |
parent | 6675866787bf2c9cb095b8154fbdae33a1fb71c4 (diff) | |
parent | 87f7fbd076fc301262fc0a628d81b3a1bd3688e7 (diff) |
Merge branch 'develop' of github.com:sebbacon/alaveteli into feature/more-filter-and-search-options
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rwxr-xr-x | app/helpers/link_to_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb index 445a96920..34354a79b 100755 --- a/app/helpers/link_to_helper.rb +++ b/app/helpers/link_to_helper.rb @@ -61,7 +61,7 @@ module LinkToHelper # Public bodies def public_body_url(public_body) - return show_public_body_url(:url_name => public_body.url_name, :only_path => true) + public_body.url_name.nil? ? '' : show_public_body_url(:url_name => public_body.url_name, :only_path => true) end def public_body_link_short(public_body) link_to h(public_body.short_or_long_name), public_body_url(public_body) |