- Posts: 9
How To / General
Bug where enrolled users get null course
- vanoir
- Topic Author
- Offline
- New Member
-
Less
More
9 years 11 months ago #1
by vanoir
Bug where enrolled users get null course was created by vanoir
Just updated my Joomdle to the latest version and I've found the bug mentioned in the post title (it works fine for not logged users and non-enrolled).
The following change did the job as a workaround
joomla/components/com_joomdle/views/course/view.html.php
to
I'm using latest Joomla and Moodle 2.6 atm
Best regards and keep up the good job.
The following change did the job as a workaround
joomla/components/com_joomdle/views/course/view.html.php
Code:
- if ($this->is_enroled)
- $this->mods = JoomdleHelperContent::call_method ( 'get_course_mods', (int) $id, $username);
- else
- $this->mods = JoomdleHelperContent::call_method ( 'get_course_mods', (int) $id, '');
Code:
+ $this->mods = JoomdleHelperContent::call_method ( 'get_course_mods', (int) $id, '');
I'm using latest Joomla and Moodle 2.6 atm
Best regards and keep up the good job.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
9 years 11 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Bug where enrolled users get null course
Thanks for the bug report and proposed change. We'll check it and get back to you.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
9 years 10 months ago #3
by Antonio Durán
Replied by Antonio Durán on topic Bug where enrolled users get null course
I have tested locally, and this is working fine for me, for logged users also. Did you upgrade Joomdle on Moodle side too?
When you are logged in, Joomdle will show only available contents for the user.
When you are logged in, Joomdle will show only available contents for the user.
Please Log in or Create an account to join the conversation.