diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-08-29 13:56:22 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-08-29 13:56:22 +0100 |
commit | b4aefe5a69bbd492959931f1c577a028ec361993 (patch) | |
tree | 18c3b8e9237d178e6a20c2412ac473685c9c183f /app/models/info_request.rb | |
parent | 50cd41b88b4421824e436d9189f8780b84c46a1a (diff) | |
parent | 9e6173961d2eefae7417ad2bca06e9168533405b (diff) |
Merge branch 'feature/more-filter-and-search-options' into develop
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 |