From 0f0854cd60aebde1b4a69e455ee40686c4ab0353 Mon Sep 17 00:00:00 2001 From: Seb Bacon Date: Thu, 15 Sep 2011 11:50:21 +0100 Subject: 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. --- app/models/info_request.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/models/info_request.rb') 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) -- cgit v1.2.3