Skip to content

Commit

Permalink
change add course input name to match unarchive course input name
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Jordan committed Jan 20, 2024
1 parent 2ed01cf commit 6762344
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/WeBWorK/ContentGenerator/CourseAdmin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ sub add_course_form ($c) {
sub add_course_validate ($c) {
my $ce = $c->ce;

my $add_courseID = trim_spaces($c->param('add_courseID')) || '';
my $add_courseID = trim_spaces($c->param('new_courseID')) || '';
my $add_initial_userID = trim_spaces($c->param('add_initial_userID')) || '';
my $add_initial_password = trim_spaces($c->param('add_initial_password')) || '';
my $add_initial_confirmPassword = trim_spaces($c->param('add_initial_confirmPassword')) || '';
Expand Down Expand Up @@ -293,7 +293,7 @@ sub do_add_course ($c) {
my $db = $c->db;
my $authz = $c->authz;

my $add_courseID = trim_spaces($c->param('add_courseID')) || '';
my $add_courseID = trim_spaces($c->param('new_courseID')) || '';
my $add_courseTitle = trim_spaces($c->param('add_courseTitle')) || '';
my $add_courseInstitution = trim_spaces($c->param('add_courseInstitution')) || '';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
<div class="row mb-2">
<div class="col-lg-8 col-md-10">
<div class="form-floating mb-1">
<%= text_field add_courseID => '',
id => 'add_courseID',
<%= text_field new_courseID => '',
id => 'new_courseID',
placeholder => '',
class => 'form-control' =%>
<%= label_for add_courseID => maketext('Course ID') =%>
<%= label_for new_courseID => maketext('Course ID') =%>
</div>
<div class="form-floating mb-1">
<%= text_field add_courseTitle => '',
Expand Down

0 comments on commit 6762344

Please sign in to comment.