Fix proxy_vote nil pointer dereference

main
Jan Dittberner 2 years ago
parent dbf774b727
commit 3dc3160945

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

Loading…
Cancel
Save