lib/controllers/logs.rb in wackamole-0.0.8 vs lib/controllers/logs.rb in wackamole-0.0.9
- old
+ new
@@ -20,9 +20,10 @@
begin
@filter.search_terms = params[:search_filter][:search_terms]
@logs = Wackamole::Log.paginate( @filter.to_conds )
rescue => boom
# puts boom
+ @filter.search_terms = nil
flash_it!( :error, boom )
@logs = [].paginate
end
erb :"logs/filter.js", :layout => false
\ No newline at end of file