aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-09-15 11:50:21 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-09-15 11:50:21 +0100
commit0f0854cd60aebde1b4a69e455ee40686c4ab0353 (patch)
tree03952ada60ec683994d301659e50376cf64bf35b /app/models/info_request.rb
parent1def714bd60164afe10b0b9d83b87fec27d9617c (diff)
Simplify the "Send follow up" / "Reply" UI: only offer singe "Write a reply" option, and on the next page, give the user the opportunity to change the recipient from the default (the last valid sender of a message) to any other valid recipient. Closes #35.
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index 88a02cc2c..92322f74f 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -922,10 +922,13 @@ public
end
# List of incoming messages to followup, by unique email
- def who_can_followup_to
+ def who_can_followup_to(skip_message = nil)
ret = []
done = {}
for incoming_message in self.incoming_messages.reverse
+ if incoming_message == skip_message
+ next
+ end
incoming_message.safe_mail_from
email = OutgoingMailer.email_for_followup(self, incoming_message)