diff --git a/CTFd/templates/original/admin/team.html b/CTFd/templates/original/admin/team.html index 8657f4c..84faefd 100644 --- a/CTFd/templates/original/admin/team.html +++ b/CTFd/templates/original/admin/team.html @@ -287,9 +287,10 @@ var action = '{{ request.script_root }}/admin/wrong_keys/' + key_id + '/delete'; } else if (type == 'award-row') { var title = 'Delete Award'; + var award_id = elem.find('.chal').attr('id'); var description = "Are you sure you want to delete the " + "{0} award?".format(chal_name); - var action = '{{ request.script_root }}/admin/awards/{0}/delete'.format(chal_name); + var action = '{{ request.script_root }}/admin/awards/{0}/delete'.format(award_id); } var msg = {