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: Fix binding issue (props greg)
Date Sun, 10 Feb 2019 17:04:04 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 7db94bb  Fix binding issue (props greg)
7db94bb is described below

commit 7db94bbdee33fbd59bc5bd2513f503e08fcc436b
Author: Sebb <sebb@apache.org>
AuthorDate: Sun Feb 10 17:03:54 2019 +0000

    Fix binding issue (props greg)
---
 www/roster/views/actions/committee.json.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/roster/views/actions/committee.json.rb b/www/roster/views/actions/committee.json.rb
index 216bfc9..b39ff99 100644
--- a/www/roster/views/actions/committee.json.rb
+++ b/www/roster/views/actions/committee.json.rb
@@ -97,7 +97,8 @@ if env.password
   # compose E-mail
   action = (@action == 'add' ? 'added to' : 'removed from')
   if @targets.include? 'pmc'
-    list = @targets.include? 'commit' ? 'PMC and committers list' : 'PMC list'
+    # must use () to enclose method parameter below as ? binds tighter
+    list = @targets.include?('commit') ? 'PMC and committers list' : 'PMC list'
   elsif @targets.include? 'info'
     list = 'in committee-info.txt'
   else


Mime
View raw message