Issue Details (XML | Word | Printable)

Key: MDL-14052
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Petr Skoda
Reporter: Greg Rodenhiser
Votes: 1
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Upcoming Events block does not show course events on main page

Created: 26/Mar/08 03:31 AM   Updated: 22/Apr/08 03:04 PM
Return to search
Component/s: Calendar
Affects Version/s: 1.9
Fix Version/s: 1.9.1

Environment: Redhat Enterprise 4AS, Apache 2.2.x, PHP 5.2.5, MySQL 5.x

Database: MySQL
Participants: Greg Rodenhiser, Jerome Mouneyrac and Petr Skoda
Security Level: None
QA Assignee: Jerome Mouneyrac
Resolved date: 18/Apr/08
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
Course events in the calendar block will not show up in the Upcoming Events block on the main page. These course events will only show up in the Upcoming Events block when the user is in the course page for the corresponding course event.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda added a comment - 26/Mar/08 04:13 AM
Hello,
Could you please try the latest 1.9+ version? I think it might have been already fixed.

Petr


Greg Rodenhiser added a comment - 26/Mar/08 04:54 AM
I actually updated to the latest 1.9+ this morning. This fixed the same
issue in the Calendar month view on the main page, but the Upcoming Events
block was still having the problem. I fixed Upcoming Events by appending
the same two lines of PHP to block_calendar_upcoming.php that fixed
block_calendar_month.php:

$SESSION->cal_courses_shown = calendar_get_default_courses(true);
calendar_set_referring_course(0);


Petr Skoda added a comment - 26/Mar/08 04:57 AM
thanks! I will update the code there tomorrow

Petr Skoda added a comment - 17/Apr/08 07:25 AM
forgot about his, sorry - tomorrow

Petr Skoda added a comment - 18/Apr/08 03:20 AM
fixed in cvs, big thanks for spotting this!

Jerome Mouneyrac added a comment - 22/Apr/08 03:04 PM
On the main page:
  • as a student of a course, I see upcoming course events => OK
  • as Moodle administrator, I don't see upcoming course event => OK