diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-09-16 12:43:27 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-09-16 12:43:27 +0100 |
commit | 312f9e1191dd4d7d0e976728561c4b74d8b84588 (patch) | |
tree | 506a615c2bbb95cf7f30a1655ef6ccd7e2d2f521 /app/models/info_request.rb | |
parent | 8a0210db99a146a2700a5db0335618423ea756a0 (diff) | |
parent | d54f405434a3b0da5f2c88fc065680caf044aff2 (diff) |
Merge branch 'release/0.3'0.3
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 |