diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-08-24 11:50:10 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-08-24 11:50:10 +0100 |
commit | 6675866787bf2c9cb095b8154fbdae33a1fb71c4 (patch) | |
tree | c4cf9cc17bce2006e6e0e06f8945be783ae3d976 /app/models/info_request.rb | |
parent | b9c7136580e65be4f0eb5c7ebbeaf42aeb888d1f (diff) |
First stab at filtering on the "View requests" page
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index c667e1499..9b0f1047b 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -451,7 +451,7 @@ public self.log_event("response", params) self.save! end - + self.info_request_events.each { |event| event.xapian_mark_needs_index } # for the "waiting_classification" index RequestMailer.deliver_new_response(self, incoming_message) end @@ -564,6 +564,7 @@ public def calculate_event_states curr_state = nil for event in self.info_request_events.reverse + event.xapian_mark_needs_index # we need to reindex all events in order to update their latest_* terms if curr_state.nil? if !event.described_state.nil? curr_state = event.described_state |