PiRSquared17 / activescaffold

Automatically exported from code.google.com/p/activescaffold
MIT License
0 stars 0 forks source link

Field Search - NoMethodError (undefined method `each' for "":String): FIX #767

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use field_search
2. some how search_params is a blank string ""
3. NoMethodError (undefined method `each' for "":String):

What is the expected output? What do you see instead?
a reset search

What version (or revision) of the product are you using?
master

Fix by:

    def do_search
      unless search_params.nil?

    def do_search
      unless search_params.nil? || search_params == ""

Original issue reported on code.google.com by robert.j...@gmail.com on 4 Nov 2010 at 4:40

GoogleCodeExporter commented 9 years ago
Fixed in c00e861

Original comment by sergio.c...@gmail.com on 5 Nov 2010 at 8:26