Moodle 1.1dev errors (easy to fix)

Moodle 1.1dev errors (easy to fix)

by David Delgado -
Number of replies: 2
Well, now that we have a release date for Moodle 1.1 (August 20th). I have checked it and found 3 litte errors, that I think that are a bit annoying, but easy to fix:

1) In a Course, Participants, Outline or Complete "Activity report": you will find problems regarding Workshop module:

"Fatal error: Call to undefined function: workshop_get_submission() in /home/moodorg/public_html/mod/workshop/lib.php on line 186"

2) When canceling the editing of an activity module (for example, forum):

Error: "Must specify course id or short name"

3) When seaching Forums: Problems when listing posts with links.

Sometimes (not always) they make everything a mess. Test it looking in this course for "hosting". See my posting on this among the results, and John Eyre's posting too. See, for example, this thing inside a message:
"http://moodle.com/ CLASS=highlight>hosting", when it should be: "http://moodle.com hosting"
Average of ratings: -
In reply to David Delgado

Re: Moodle 1.1dev errors (easy to fix)

by Scott Elliott -
2)  In course/mod.php near the beginning of the file, I think if you move:

        if (isset($SESSION->modform)) {  // Variables are stored in the session
            $mod = $SESSION->modform;
            unset($SESSION->modform);
        } else {
            $mod = (object)$_POST;
        }

before:

    if (isset($cancel)) {
        if (!empty($SESSION->returnpage)) {
            $return = $SESSION->returnpage;
            unset($SESSION->returnpage);
            redirect($return);
        } else {
            redirect("view.php?id=$mod->course");
        }
    }

It should fix the problem.  Can anyone test this?