Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the bin/addcourse script for the new addCourse options. #30

Conversation

drgrice1
Copy link

This just uses the simplest possible approach and switches the script from using the now removed templatesFrom option to using the new copyFrom option. If that option is set, then the new copyTemplatesHtml option is also set to be true. Thus the existing behavior of the script is preserved.

The script could be updated to actually take advantage of the new options instead if one were ambitious, but this is good enough for now.

This also fixes all of the long lines in
lib/WeBWorK/Utils/CourseManagement.pm, and an issue with comments in the initNonNativeTables method.

This just uses the simplest possible approach and switches the script
from using the now removed `templatesFrom` option to using the new
`copyFrom` option.  If that option is set, then the new
`copyTemplatesHtml` option is also set to be true.  Thus the existing
behavior of the script is preserved.

The script could be updated to actually take advantage of the new
options instead if one were ambitious, but this is good enough for now.

This also fixes all of the long lines in
`lib/WeBWorK/Utils/CourseManagement.pm`, and an issue with comments in
the `initNonNativeTables` method.
@Alex-Jordan Alex-Jordan merged commit c6dbba5 into Alex-Jordan:copy-course Feb 12, 2024
1 check passed
@drgrice1 drgrice1 deleted the copy-course-addcourse-script-update branch February 12, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants