Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

search function in 2.0 branch #31

Open
ghost opened this issue Apr 29, 2010 · 2 comments
Open

search function in 2.0 branch #31

ghost opened this issue Apr 29, 2010 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 29, 2010

search doesn't work when i try to filter by a criteria. I receive 500 error
"Premature end of script headers: searches" from apache

@ghost
Copy link
Author

ghost commented Apr 29, 2010

I've solved the issue by modifying the search functions

def find_events
Event.find(:all, :include => [ :comments], :joins => [:sensor, :iphdr, :tcphdr, :udphdr, :sig], :order => 'timestamp DESC', :conditions => conditions)
end

def find_page_events(page)
Event.paginate(:per_page => Setting.events_per_page,
:page => page,
:joins => [:sensor, :iphdr, :tcphdr, :udphdr, :sig],
:include => [:comments],
:conditions => conditions,
:order => 'timestamp DESC')
end

@dajackman
Copy link

How do you get a copy of the 2.0 branch?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant