Fix proxy_vote nil pointer dereference

This commit is contained in:
Jan Dittberner 2022-10-15 15:06:03 +02:00
parent dbf774b727
commit 3dc3160945

View file

@ -12,9 +12,9 @@
<label for="voter">Voter</label>
<select id="voter" name="voter">
{{ range .Form.Voters }}
{{ if not (eq .ID $user.ID) }}
{{ if ne .ID $user.ID }}
<option value="{{ .ID }}"
{{ if eq .ID $form.VoterID }} selected{{ end }}>{{ .Name }}</option>
{{ if $form.Voter }}{{ if eq .ID $form.Voter.ID }} selected{{ end }}{{ end }}>{{ .Name }}</option>
{{ end }}
{{ end }}
</select>