Skip to content

Commit 2cd899e

Browse files
authored
Merge pull request #234 from appsembler/juniper/main
Update from `juniper/main` (production)
2 parents 22894a5 + d573783 commit 2cd899e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lms/static/js/instructor_dashboard/membership.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ such that the value can be defined later than this assignment (file load order).
603603
this.$request_response_error = this.$container.find('.request-response-error');
604604
this.$enrollment_button.click(function(event) {
605605
var sendData;
606-
if (!batchEnroll.$reason_field.val()) {
606+
if (batchEnroll.$reason_field.length && !batchEnroll.$reason_field.val()) {
607607
batchEnroll.fail_with_error(gettext('Reason field should not be left blank.'));
608608
return false;
609609
}

0 commit comments

Comments
 (0)