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

Apply course start and end dates from template course #32

Closed
mackensen opened this issue Aug 19, 2023 · 4 comments
Closed

Apply course start and end dates from template course #32

mackensen opened this issue Aug 19, 2023 · 4 comments

Comments

@mackensen
Copy link
Contributor

From the Moodle plugins database:

We've been using this plugin for a while now and, for the most part, it's working as we want. The one thing it's not doing is setting the start/end dates to match those of the template. I've read in forums that it should be using those dates. Instead, all our courses are given "today's date" as the start and empty end dates. If I could figure out a way to get this to work, it would be very helpful.

By design the plugin doesn't do this, because it was developed for a use case where course start and end dates come over from the SIS. I can see how that would be useful functionality. https://moodle.org/plugins/tool_coursedates is another way to accomplish this.

@bfriesenvcc
Copy link

Thank you for adding this tracker item. I look forward to a future enhancement.

@mackensen
Copy link
Contributor Author

mackensen commented Aug 21, 2023

@bfriesenvcc this turned out to be fairly simple to implement; can you please test the code at https://github.com/LafColITS/moodle-local_course_template/tree/32-dates? You'll need to enable the new setting.

@bfriesenvcc
Copy link

It worked! You're amazing! I did get the attached error messages during installation, though.
course template errors.txt

@mackensen
Copy link
Contributor Author

Yes, that's because I didn't bump the version on the plugin yet, so Moodle didn't know about the new strings. Glad to hear it worked for you! I'll do the formal release of the new version tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants