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 5cc4a796 Allow for nil @attach
5cc4a796 is described below
commit 5cc4a796b94a916998d07c4bf1c8a0f57b027c34
Author: Sebb <[email protected]>
AuthorDate: Thu Jul 11 17:35:53 2024 +0100
Allow for nil @attach
---
www/board/agenda/views/actions/post.json.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/board/agenda/views/actions/post.json.rb
b/www/board/agenda/views/actions/post.json.rb
index 2facd850..0181c8f8 100644
--- a/www/board/agenda/views/actions/post.json.rb
+++ b/www/board/agenda/views/actions/post.json.rb
@@ -96,7 +96,7 @@ Agenda.update(@agenda, @message, auth: alternate_credentials)
do |agenda|
# insert into agenda
agenda[/\n() 9\. .*Action Items/, 1] = "#{title}#{@report}\n\n"
- elsif @attach.start_with? '+'
+ elsif @attach&.start_with? '+'
pmc_reports = parsed.select {|section| section[:attach] =~ /^[A-Z]/}
attach = pmc_reports.last[:attach].succ
pmc = ASF::Committee.find(@attach[1..-1])