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

Choice activity bug when editing/deleting a block

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.5, 2.8.3, 2.9
    • Fix Version/s: 2.7.6, 2.8.4
    • Component/s: Blocks
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip_MDL-49184_m29_choice

      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

              Assignee:
              skodak Petr Skoda
              Reporter:
              oleg Oleg Demeshev
              Peer reviewer:
              Sam Hemelryk
              Integrator:
              Dan Poltawski
              Tester:
              John Okely
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Mar/15