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 837989c6 Pre-select secretary
837989c6 is described below
commit 837989c6b2c9383616f6372f8c1ccbf35444f168
Author: Sebb <[email protected]>
AuthorDate: Thu Feb 8 11:52:31 2024 +0000
Pre-select secretary
---
www/members/proxy.cgi | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/www/members/proxy.cgi b/www/members/proxy.cgi
index 3f5b11d7..b3273eee 100755
--- a/www/members/proxy.cgi
+++ b/www/members/proxy.cgi
@@ -81,6 +81,12 @@ end
# Emit meeting data and form for user to select a proxy - GET
def emit_form(cur_mtg_dir, meeting, volunteers, disabled)
+ begin
+ secretary_id = ASF::Committee.officers.select{|x|x.name ==
'secretary'}.first.chairs.map{|x|x[:id]}.first
+ rescue StandardError
+ secretary_id = ''
+ end
+
help, copypasta = ASF::MeetingUtil.is_user_proxied(cur_mtg_dir, $USER)
user_is_proxy = help && copypasta
_whimsy_panel(user_is_proxy ? "You Are Proxying For Others" : "Select A
Proxy For Upcoming Meeting", style: 'panel-success') do
@@ -141,7 +147,7 @@ def emit_form(cur_mtg_dir, meeting, volunteers, disabled)
next if members_txt[member.id]['status'] # Emeritus/Deceased
# Display the availid to users to match volunteers array above
_option "#{member.public_name} (#{member.id})",
- selected: (meeting == '20220615' && member.id ==
'mattsicker')
+ selected: (member.id == secretary_id)
end
end
end