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

Choice activity bug when editing/deleting a block

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.5, 2.8.3, 2.9
    • 2.7.6, 2.8.4
    • Blocks
    • MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • wip_MDL-49184_m29_choice
    • Hide

      Run behat tests for @mod_choice

      Manual steps:
      ------
      Log in as Site Administrator
      1. Create a new course
      2. Enrol yourself (i.e the site administrator) into the course
      3. Goto course
      4. Submit "Turn editing on" button and keep it, do not turn off.
      5. Add a "Choice" activity module to this course
      6. Attempt the Choice module by clicking on the activity
      7. Add a new block (any) and attempt to edit the block and save changes or delete this block

      OLD BEHAVIOUR
      =========
      The error message is displayed
      "This block (id=X) does not exist on this page (http://site.com/mod/choice/view.php?id=X)."

      EXPECTED BEHAVIOUR
      ==================
      The page should return to http://site.com/mod/choice/view.php?id=X

      Show
      Run behat tests for @mod_choice Manual steps: ------ Log in as Site Administrator 1. Create a new course 2. Enrol yourself (i.e the site administrator) into the course 3. Goto course 4. Submit "Turn editing on" button and keep it, do not turn off. 5. Add a "Choice" activity module to this course 6. Attempt the Choice module by clicking on the activity 7. Add a new block (any) and attempt to edit the block and save changes or delete this block OLD BEHAVIOUR ========= The error message is displayed "This block (id=X) does not exist on this page ( http://site.com/mod/choice/view.php?id=X )." EXPECTED BEHAVIOUR ================== The page should return to http://site.com/mod/choice/view.php?id=X

    Description

      There's a bug in the Choice activity module that prevents an administrator from editing or deleting a block on the Choice view page if
      the administrator is also enrolled as a learner on the course containing the Choice activity.
      Error message:

      This block (id=X) does not exist on this page (http://site.com/mod/choice/view.php?id=X).

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              oleg Oleg Demeshev
              Sam Hemelryk Sam Hemelryk
              Dan Poltawski Dan Poltawski
              John Okely John Okely
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Mar/15