This is an automated email from the ASF dual-hosted git repository.

curcuru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

commit 5e1f73278500ddd781a1c27700f8fe664a6b29f1
Merge: e5506ce2 8f9f1e0b
Author: Shane Curcuru <[email protected]>
AuthorDate: Wed Jan 29 07:34:38 2025 -0500

    Merge branch 'master' of https://github.com/apache/whimsy

 www/members/nominate_board.cgi | 2 ++
 1 file changed, 2 insertions(+)

diff --cc www/members/nominate_board.cgi
index bd69352f,10dde4d7..dca14de7
--- a/www/members/nominate_board.cgi
+++ b/www/members/nominate_board.cgi
@@@ -59,10 -60,11 +59,12 @@@ en
  # Validation as needed within the script
  # Returns: 'OK' or a text message describing the problem
  def validate_form(formdata: {})
+   statement = formdata['statement']
+   return "Please provide a statement" unless statement =~ %r{\S{3,}.+\S{3,}} 
# at least 2 three-letter words!
    uid = formdata['availid']
 +  return "You MUST provide a nomination statement for Candidate #{uid}; blank 
was provided!" if formdata['statement'].empty? 
    chk = ASF::Person[uid]&.asf_member?
 -  chk.nil? and return "Invalid availid or non-Member suppiled: 
(#{uid})\n\nStatement:\n#{formdata['statement']}"
 +  chk.nil? and return "Invalid availid or non-Member nominated; please add 
manually if desired: (#{uid})\n\nYour Statement:\n#{formdata['statement']}"
    already = ASF::MemberFiles.board_nominees
    return "Candidate #{uid} has already been nominated by 
#{already[uid]['Nominated by']}" if already.include? uid
    return 'OK'

Reply via email to