aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2011-08-31 19:02:11 +0100
committerRobin Houston <robin.houston@gmail.com>2011-08-31 19:02:11 +0100
commit1fb99a4df2514cb6aea37fcf1fd4790234d77c7e (patch)
tree07d982cb8d123c73ffa9ed89eab33714fcf5eaa7 /app/models/info_request.rb
parentea24f7b14d9fc0cb82b40a87de061d95c740723c (diff)
parent703f6371ec41cc614137e07666f345b4bbc44a5e (diff)
Merge branch 'develop' of github.com:sebbacon/alaveteli into develop
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb3
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