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 80fce84: try harder to find membership applications
Date Wed, 02 Mar 2016 16:05:15 GMT
Commit 80fce841271d051e4a97fa9430962afdc0ed7b89:
    try harder to find membership applications


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

------------------------------------------------------------
www/roster/models/committer.rb                               | +++++++++ ---
------------------------------------------------------------
12 changes: 9 additions, 3 deletions.
------------------------------------------------------------


diff --git a/www/roster/models/committer.rb b/www/roster/models/committer.rb
index ba00a53..3e354b9 100644
--- a/www/roster/models/committer.rb
+++ b/www/roster/models/committer.rb
@@ -83,9 +83,15 @@ def self.serialize(id, env)
         member[:status] = ASF::Member.status[id] || 'Active'
 
         apps = ASF::SVN['private/documents/member_apps']
-        memapp = member[:info].split("\n").first.downcase.gsub(/\s/, '-')
-        if apps and File.exist? File.join(apps, memapp + '.pdf')
-          response[:forms][:member] = memapp + '.pdf'
+        [
+          person.icla.legal_name, 
+          person.icla.name,
+          member[:info].split("\n").first.strip
+        ].uniq.each do |name|
+          memapp = name.downcase.gsub(/\s/, '-')
+          if apps and File.exist? File.join(apps, memapp + '.pdf')
+            response[:forms][:member] = memapp + '.pdf'
+          end
         end
       else
         if person.member_nomination

Mime
View raw message