whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit b137a48: env is not visible to mail block
Date Fri, 04 Mar 2016 21:31:56 GMT
Commit b137a487f7c7ae669459da5dd14dba7b5279bf47:
    env is not visible to mail block


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/roster/views/actions/committee.json.rb                   | ++ -
------------------------------------------------------------
3 changes: 2 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/roster/views/actions/committee.json.rb b/www/roster/views/actions/committee.json.rb
index 87c1275..87155c8 100644
--- a/www/roster/views/actions/committee.json.rb
+++ b/www/roster/views/actions/committee.json.rb
@@ -27,9 +27,10 @@
   details << pmc.dn if pmc
 
   pmc ||= ASF::Committee.find(@pmc)
+  from = ASF::Person.find(env.user)
 
   mail = Mail.new do
-    from "#{ASF::Person.find(env.user).public_name} <#{env.user}@apache.org>"
+    from "#{from.public_name} <#{from.id}@apache.org>"
     to "private@#{pmc.mail_list}.apache.org"
     bcc "root@apache.org"
     subject "#{person.public_name} #{action} #{pmc.display_name} #{list}"

Mime
View raw message