Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-33917

mod/resource/db/upgradelib.php typing error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.9, 2.1.6, 2.2.3
    • Fix Version/s: 2.2.5
    • Component/s: Resource
    • Labels:
    • Testing Instructions:
      Hide
      1. Install a Moodle 1.9 site
      2. Go to Admin > Front Page > Front page settings
      3. Include a topic section
      4. On front page topic section
      5. Add a link to a file or website
      6. Upload a file
      7. Set the link to this. (click choose).
      8. Set the link explicitly so it uses the full http link (not just IMG_1.jpg explicitly to http://dan.moodle.org/moodle/file.php/1/IMG_1.jpg ) # # Save and verify that the file is linked to on front page
      9. Checkout MOODLE_22_STABLE
      10. Upgrade
      11. Check the front page resource has been upgraded correctly and is visible when you click on it
      Show
      Install a Moodle 1.9 site Go to Admin > Front Page > Front page settings Include a topic section On front page topic section Add a link to a file or website Upload a file Set the link to this. (click choose). Set the link explicitly so it uses the full http link (not just IMG_1.jpg explicitly to http://dan.moodle.org/moodle/file.php/1/IMG_1.jpg ) # # Save and verify that the file is linked to on front page Checkout MOODLE_22_STABLE Upgrade Check the front page resource has been upgraded correctly and is visible when you click on it
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE

      Description

      in function resource_20_migrate(), line 79 is a typing error, i guess. (maybe nobody uses upload of resource to $siteid, so nobody recognized)

      $file_record = array('contextid'=>$context->id, 'component'=>'mod_resourse', 'filearea'=>'content', 'itemid'=>0);

      i think 'mod_resourse' should be spelled: 'mod_resource'

      Best regards
      Timo Welde

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Sep/12