Issue Details (XML | Word | Printable)

Key: MDL-19405
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Nobody
Reporter: Rainer Herbst
Votes: 1
Watchers: 1
Operations

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

Calendar export crashes due to undefined function "groups_get_all_groups()"

Created: 05/Jun/09 10:37 PM   Updated: 05/Jun/09 10:37 PM
Return to search
Component/s: Calendar
Affects Version/s: 1.8.8, 1.8.9
Fix Version/s: None

Environment:
Moodle 1.8.8
Solaris 10, SPARC
PHP Version => 5.2.4

Participants: Nobody and Rainer Herbst
Security Level: None
Difficulty: Moderate
Affected Branches: MOODLE_18_STABLE


 Description  « Hide
Calendar Export crashes if Option "all event" is choosen.

Error Message:
[Fri Jun 05 16:27:39 2009] [error] [client 141.89.70.106] PHP Fatal error: Call to undefined function groups_get_all_groups() in /opt/csw/apache2/share/moodle/moodle_test/calendar/export_execute.php on line 39

Indeed, in line 39 of export_execute this function is called:
    34 if ($what == 'all') {
    35 $users = $user->id;
    36 $groups = array();
    37 foreach ($courses as $course) {
    38 $course_groups = groups_get_all_groups($course->id, $user->id);
    39 if ($course_groups) {
    40 $groups = $groups + array_keys($course_groups);
    41 }
    42 }

but I could not find the place where this function is declared/defined.

Steps to reproduce:
- Choose a Calendar block.
- pick a month
- in the "detailed month view", click on "Export calendar".
- leave the "Export" option on "all events" and click "Export"
In my environment, a blank page occures and I found the error message in the lock.

The problem is not solved in 1.8.9.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.