diff options
author | David Cabo <david@calibea.com> | 2011-08-17 11:05:21 +0200 |
---|---|---|
committer | David Cabo <david@calibea.com> | 2011-08-17 11:05:21 +0200 |
commit | 817ce18d16d037aadc5ea44d93854c6e17f06747 (patch) | |
tree | 1820f4a62c1060063e0b9751473eca9610142598 /app/helpers/link_to_helper.rb | |
parent | 0ca78b7c2abfe28ef7acd7137fda5d82a973c2e1 (diff) | |
parent | e1a2e1ad36c6b0c7bfac501eb2a0d0ae5efd05a1 (diff) |
Merge branch 'fixes' into asktheeu
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 444129052..558479c26 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) |