Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ynr/apps/bulk_adding/static/bulk_adding/js/bulk.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ $(function(){
}

// Remove empty fieldsets
var always_show_extra = $("form#bulk_add_form")[0].dataset['winnerCount'] * 3;
var always_show_extra = $("form#bulk_add_form")[0].dataset.winnerCount * 3;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't had chance to check this out locally to test, but I dont think this would fix the 500 error I mentioned in an old comment that happens when a ballot does not have winner_count set? I think that will need a change in the view.

There was also another bug that I came across when testing originally, that from memory, was that if I filled in multiple candidates using the new "add a row" button, and then submitting the form, only the last candidate that I entered was being created/shown for review. But as mentioned it was a while ago I tested it locally so will need to go through again when I have chance!

$("#bulk_add_form .sopn_adding_table tbody").each(function(i) {
var tbody = $(this);
if (tbody_is_empty(tbody)) {
Expand Down