whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Avoid failure if uid has no ICLA
Date Thu, 28 May 2020 11:42:21 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 1eccd1f  Avoid failure if uid has no ICLA
1eccd1f is described below

commit 1eccd1fe19bc93a83eaea36cf5a59bd4c000d4b5
Author: Sebb <sebb@apache.org>
AuthorDate: Thu May 28 12:41:49 2020 +0100

    Avoid failure if uid has no ICLA
---
 www/roster/views/actions/fullname.json.rb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/www/roster/views/actions/fullname.json.rb b/www/roster/views/actions/fullname.json.rb
index 0a71328..09ddb08 100644
--- a/www/roster/views/actions/fullname.json.rb
+++ b/www/roster/views/actions/fullname.json.rb
@@ -77,8 +77,10 @@ if message
 end
 
 # update cache
-person.icla.legal_name = @legalname
-person.icla.name = @publicname
+if person.icla
+  person.icla.legal_name = @legalname
+  person.icla.name = @publicname
+end
 
 # return updated committer info
 _committer Committer.serialize(@userid, env)


Mime
View raw message