Moodle
  1. Moodle
  2. MDL-6225

Moodle MDL-4658 Breaks assignment type: Upload Single

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: None
    • Component/s: Assignment (2.2)
    • Labels:
      None
    • Environment:
      other
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_16_STABLE

      Description

      The fix for MDL-4658 causes function count_user_files() to fail null in /mod/assignment/lib.php as the is_dir() function is referencing the www root directory instead of the moodle data directory. This causes /mod/assignment/view.php to not show any files that have been uploaded by the student.

      Fix for MDL-4658:

      if (is_dir($filearea) && $basedir = $this->file_area($userid)) {

      This should fix this issue:

      if (is_dir($CFG->dataroot.'/'.$filearea) && $basedir = $this->file_area($userid)) {

      Environment: Windows 2003 Server, PHP v. 5.1.4, MySQL v. 4.1.16

        Gliffy Diagrams

          Activity

          Hide
          Martin Dougiamas added a comment -

          From Petr Skoda (skodak at centrum.cz) Tuesday, 8 August 2006, 02:11 AM:

          assigning

          From Petr Skoda (skodak at centrum.cz) Thursday, 10 August 2006, 02:39 AM:

          fixed in cvs, closing now.

          thanks for the report and solution...

          Show
          Martin Dougiamas added a comment - From Petr Skoda (skodak at centrum.cz) Tuesday, 8 August 2006, 02:11 AM: assigning From Petr Skoda (skodak at centrum.cz) Thursday, 10 August 2006, 02:39 AM: fixed in cvs, closing now. thanks for the report and solution...
          Hide
          Michael Blake added a comment -

          assign to a valid user

          Show
          Michael Blake added a comment - assign to a valid user

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: