You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/03/24 22:45:11 UTC

[whimsy] branch master updated: Wrong again

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 c3ff9d7  Wrong again
c3ff9d7 is described below

commit c3ff9d783a06f3f951d4ea035edc4727b41ab027
Author: Sebb <se...@apache.org>
AuthorDate: Sun Mar 24 22:45:05 2019 +0000

    Wrong again
---
 www/roster/views/actions/email_alt.json.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/roster/views/actions/email_alt.json.rb b/www/roster/views/actions/email_alt.json.rb
index 087c385..dd957fa 100644
--- a/www/roster/views/actions/email_alt.json.rb
+++ b/www/roster/views/actions/email_alt.json.rb
@@ -5,7 +5,7 @@
 person = ASF::Person.find(@userid)
 
 # report the previous value in the response
-_previous alt_email: person.attrs['alt-email']
+_previous alt_email: person.attrs['asf-altEmail']
 
 if @email_alt  # must agree with email_alt.js.rb
 
@@ -26,7 +26,7 @@ if @email_alt  # must agree with email_alt.js.rb
   # update LDAP
   unless @dryrun
     _ldap.update do
-      person.modify 'alt-email', @email_alt
+      person.modify 'asf-altEmail', @email_alt
     end
   end
 end