You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2019/08/03 15:38:45 UTC
[whimsy] 01/02: allow reports to be updated
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit 23a3f1c8b27866267b469c4c34619169c5f69fe7
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Aug 2 17:03:40 2019 -0400
allow reports to be updated
---
www/board/agenda/views/actions/post.json.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/board/agenda/views/actions/post.json.rb b/www/board/agenda/views/actions/post.json.rb
index f5f1351..f6cd18a 100644
--- a/www/board/agenda/views/actions/post.json.rb
+++ b/www/board/agenda/views/actions/post.json.rb
@@ -19,9 +19,9 @@ Agenda.update(@agenda, @message) do |agenda|
project = ASF::Committee.find(@project).display_name
parsed.each do |report|
if report['title'] == project
- raise "report already posted" unless report['missing']
+ raise "report already posted" unless @digest or report['missing']
@attach = report[:attach]
- @digest = report['digest']
+ @digest ||= report['digest']
end
end
end