Skip to content

Commit dc6ee14

Browse files
committed
fixed field names
1 parent beac655 commit dc6ee14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

root/account/profile.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
<%- donation = author.donation.0.id %>
4545
<label><input name="donations" type="checkbox"<% IF donation %> checked="checked"<% END %> onchange="$('#donations').slideToggle()" /> Accept donations</label>
4646
<div id="donations"<% UNLESS donation %> style="display: none"<% END %>>
47-
<% FOREACH system IN ['PayPal', 'Wishlist']; found = author.donation.grep(->(a){ a.id == system.lower }) %>
47+
<% FOREACH system IN ['PayPal', 'Wishlist']; found = author.donation.grep(->(a){ a.name == system.lower }) %>
4848
<label class="<% system.lower %>">
49-
<span><% lower %></span>
49+
<span><% system %></span>
5050
<input type="hidden" name="donation.name" value="<% system.lower %>" />
51-
<input type="text" name="donation.id"<% IF found.size %> value="<% found.0.name %>"<% END %> />
51+
<input type="text" name="donation.id"<% IF found.size %> value="<% found.0.id %>"<% END %> />
5252
</label>
5353
<% END %>
5454
</div>

0 commit comments

Comments
 (0)