diff options
author | francis <francis> | 2008-03-03 09:29:43 +0000 |
---|---|---|
committer | francis <francis> | 2008-03-03 09:29:43 +0000 |
commit | dadf0d53a38c0ec9a174692b79b856215d3e75b1 (patch) | |
tree | a6b5d8827c2522bd4b44af3fa8e0879032cdb736 /app/controllers/body_controller.rb | |
parent | 49ec949f74574d808b22f31c64d7ae73e1b8ed7a (diff) |
Display something when no public bodies found for tag
Diffstat (limited to 'app/controllers/body_controller.rb')
-rw-r--r-- | app/controllers/body_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/body_controller.rb b/app/controllers/body_controller.rb index 940df1609..5c06521f2 100644 --- a/app/controllers/body_controller.rb +++ b/app/controllers/body_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: body_controller.rb,v 1.8 2008-03-03 00:43:51 francis Exp $ +# $Id: body_controller.rb,v 1.9 2008-03-03 09:29:43 francis Exp $ class BodyController < ApplicationController # XXX tidy this up with better error messages, and a more standard infrastructure for the redirect to canonical URL @@ -54,6 +54,9 @@ class BodyController < ApplicationController @description = "All" if not @tag.nil? @description = PublicBody.categories_by_tag[@tag] + if @description.nil? + @description = @tag + end end end end |