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

Restore or copy a course change links to database items

XMLWordPrintable

      We are finding that if we create a copy of a course (using the "copy course" function, found under the settings cog), links to database items in the new copy of the course have been changed, from eg https://siteurl/mod/data/view.php?d=20&rid=9388 to https://siteurl/mod/data/index.php?d=20&rid=9388 (ie the "view.php" part of the URL has changed to "index.php").. and this obviously breaks the links.

       

      Steps to reproduce -

      1. Create "course 1"
      2. Create a Database activity in course 1 (using the predefined image gallery is fine)
      3. Add an entry to the database
      4. Create "course 2"
      5. Create an URL activity on course 2
      6. Link the URL to the database entry that sits in course 1 page eg https://siteurl/mod/data/view.php?d=102&mode=single
      7. Run "copy course" from course 2, to create "course 3"
      8. The link in the page on course 3 has now become https://siteurl/mod/data/index.php?d=102&mode=single

      The breakage also seems to take place with URL activities

      Links (to external websites) that contain "view.php" are not affected/changed by the rollover process.

            pholden Paul Holden
            mjr66 Mat Ridley
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 45 minutes
                45m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.