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

mod/resource/db/upgradelib.php typing error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.9, 2.1.6, 2.2.3
    • 2.2.5
    • Resource
    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_22_STABLE
    • 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

    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

      Attachments

        Activity

          People

            poltawski Dan Poltawski
            weldetim Timo Welde
            Andrew Davis Andrew Davis
            Sam Hemelryk Sam Hemelryk
            Michael de Raadt Michael de Raadt
            Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Sep/12