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: Make sure all required keys are present
Date Thu, 05 Jul 2018 00:36:33 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 56abd33  Make sure all required keys are present
56abd33 is described below

commit 56abd33ca75cd48771e7d9d79f93c358d4aa95ff
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Jul 5 01:36:31 2018 +0100

    Make sure all required keys are present
---
 www/project/icla/views/actions/discuss.json.rb | 3 ++-
 www/project/icla/views/actions/vote.json.rb    | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/project/icla/views/actions/discuss.json.rb b/www/project/icla/views/actions/discuss.json.rb
index 1c1f783..cb85a99 100644
--- a/www/project/icla/views/actions/discuss.json.rb
+++ b/www/project/icla/views/actions/discuss.json.rb
@@ -37,7 +37,8 @@ discussion = {
   :subject => subject,
   :project => @pmc,
   :contributor => contributor,
-  :comments => comments
+  :comments => comments,
+  :votes => []  # make sure it is present
 }
 
   # generate a token
diff --git a/www/project/icla/views/actions/vote.json.rb b/www/project/icla/views/actions/vote.json.rb
index e6b0306..c057b9f 100644
--- a/www/project/icla/views/actions/vote.json.rb
+++ b/www/project/icla/views/actions/vote.json.rb
@@ -36,6 +36,7 @@ discussion = {
   :subject => @subject,
   :project => @pmc,
   :contributor => contributor,
+  :comments => [], # make sure it is present
   :votes => votes
 }
 


Mime
View raw message