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

Moving resource in a course section page redirects to wrong page after action is completed/cancelled

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.1, 2.4
    • 2.3.2
    • Course
    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_23_STABLE
    • MDL-33767-master
    • Hide

      Prerequisites

      1. Set up a course with 'one section per page'
      2. This test has to be done with enableajax setting on AND off
      3. This test has to be done from a section page, as well as from the index page of a course
      4. When doing the 'within a section' test, do not pick the default nor the first section
      5. In total, the steps will be repeated 4 times

      Test steps
      1. Go to the index page or the section page (depending what test you're doing)
      2. Edit the section, update the name, and save. Make sure you're redirected back on the section page.
      3. Duplicate an activity, make sure you're redirected back on the section page.
      4. Move an activity, make sure you're redirected back on the section page.
      5. Add an activity to the section, and make sure you're redirected on the section page.

      Second test

      1. Edit the name of the default and another section
      2. Check that it is displayed correctly in One section per page, and Multiple section per page mode
      3. Edit the name of those sections again and set "Use default section name"
      4. Make sure that now the default section does not display a name
      Show
      Prerequisites Set up a course with 'one section per page' This test has to be done with enableajax setting on AND off This test has to be done from a section page, as well as from the index page of a course When doing the 'within a section' test, do not pick the default nor the first section In total, the steps will be repeated 4 times Test steps 1. Go to the index page or the section page (depending what test you're doing) 2. Edit the section, update the name, and save. Make sure you're redirected back on the section page. 3. Duplicate an activity, make sure you're redirected back on the section page. 4. Move an activity, make sure you're redirected back on the section page. 5. Add an activity to the section, and make sure you're redirected on the section page. Second test Edit the name of the default and another section Check that it is displayed correctly in One section per page, and Multiple section per page mode Edit the name of those sections again and set "Use default section name" Make sure that now the default section does not display a name

    Description

      1. Goto any section page
      2. Turn Ajax off at site level
      3. Try moving a resource/activity from the default section (when in the section page)
      4. press cancel in there resulting page or select a place to move the resource

      Expected result:-
      You are taken to the section page where you started

      Actual result:-
      You are taken to a page with all sections

      Attachments

        Issue Links

          Activity

            People

              fred Frédéric Massart
              ankit_frenz Ankit Agarwal
              Dan Poltawski Dan Poltawski
              Aparup Banerjee Aparup Banerjee
              Michael de Raadt Michael de Raadt
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Sep/12