mysociety / planningalerts-app

Find out and have your say about what's being built and knocked down in your area.
www.planningalerts.org.au
Other
0 stars 1 forks source link

Results page search widget not handling errors correctly #136

Closed lizconlan closed 10 years ago

lizconlan commented 10 years ago

If you change the location in the results page search bar/widget to something invalid (or insufficiently precise, e.g "Winchester"), this causes the search to fail with the view template error:

undefined method `[]' for nil:NilClass

when it tries to read the search stats. It should be doing something with the returned "Sorry, we couldn't find that address." error instead

stevenday commented 10 years ago

This is probably a good opportunity to refactor the stats sidebar into a partial too?

stevenday commented 10 years ago

This was fixed in e6e1821ade30da2dd75371293e85e561ac85e5f3