moodle-an-hochschulen / moodle-theme_boost_campus

Moodle 3.x Boost child theme which is intended to meet the needs of university campuses and adds several features and improvements ––– for Moodle 4.x please use our Theme Boost Union
GNU General Public License v3.0
38 stars 25 forks source link

When trying to enrol as a guest into a course, there is an error #28

Closed Nullmann closed 6 years ago

Nullmann commented 6 years ago

The following error pops up, when a guest tries to access the guest enrolment of a course under /enrol/index.php?id=COURSEID

screenshot

The problem ist that the $pageflatnav-Object in locallib.php:theme_boost_campus_set_node_on_top is not set for a guest, resulting in the error.

It may be a problem with your plugin boostnavigation which we have installed here at the TU Darmstadt, but we are not sure and this is just a thought.

I will create a pull-request fixing this issue.

Kathrin84 commented 6 years ago

Hi Benedikt, thank you for your bug report and the pointing to the right place. As I already commented in your pull request, I made a own patch for this: https://github.com/moodleuulm/moodle-theme_boost_campus/commit/09ef123759ba1aec9fee1dd2626b29d6b8eab193. Nevertheless it helped a lot to be able to fix this very quickly. Thanks and best, Kathrin

Nullmann commented 6 years ago

Thank you for your fast reply and the correction of the provided code!