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

Sections in a frozen form cannot be expanded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.2, 3.5
    • Fix Version/s: 3.3.6, 3.4.3
    • Component/s: Forms Library
    • Labels:
    • Testing Instructions:
      Hide

      Please test in both Clean and Boost themes.

      Setup
      1. Log in as admin.
      2. Go to "Site administration / Users / Permissions / Define roles"
      3. Edit the "Teacher" role.
      4. On the "Filter" field, enter "moodle/question"
      5. Untick everything except for the following capabilities:
        • moodle/question:viewall
        • moodle/question:viewmine
        • moodle/question:useall
        • moodle/question:usemine
      6. Create a course.
      7. In the question bank for that course, create a multiple choice question.
      8. Create a test user called 'Teach'
      9. Enrol that user as a Teacher in the test course.
      10. Log out.
      Test
      1. Log in as the user 'Teach'
      2. Go to the question bank in the test course.
      3. Click the 'Info' icon next to the multiple choice question you created as admin. (For a user with the permissions 'Teach' has, this appear where the edit icon appeared to admin user.)
      4. Verify: that you can expand the sections of the form at the bottom, like 'Combined feedback' and 'Multiple tries'.

      After test: Make sure to reset the teacher role's capabilities to their defaults

      Show
      Please test in both Clean and Boost themes. Setup Log in as admin. Go to " Site administration / Users / Permissions / Define roles " Edit the " Teacher " role. On the " Filter " field, enter " moodle/question " Untick everything except for the following capabilities: moodle/question:viewall moodle/question:viewmine moodle/question:useall moodle/question:usemine Create a course. In the question bank for that course, create a multiple choice question. Create a test user called 'Teach' Enrol that user as a Teacher in the test course. Log out. Test Log in as the user 'Teach' Go to the question bank in the test course. Click the 'Info' icon next to the multiple choice question you created as admin. (For a user with the permissions 'Teach' has, this appear where the edit icon appeared to admin user.) Verify : that you can expand the sections of the form at the bottom, like 'Combined feedback' and 'Multiple tries'. After test: Make sure to reset the teacher role's capabilities to their defaults
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Steps to reproduce:

      1. Save the attached file in the root of your Moodle site.
      2. Visit the URL wwwroot/testform.php

      Expected result: the collapse form section can be expanded by clicking on it, so that the 'Important information' you want to see in the Name field can be seen.

      Acutal result: form section is not expanable. Warning in the JavaScript console: "moodle-form-shortforms: Could not locate the form"

      Note, this can be reproduced for real in the quetsion bank:

      • Find or setup a user who has permissions moodle/question:(view/use)(all/mine) in an area of the qusetion bank. (Probably find a teacher in a course, then override the permissions for teacher role.)
      • Go to the question bank, and click the info icon next to any question (which is what appears in place of the edit icon with these permissions).
      • That is a form in the same state as my attached testform.php, but the attachment is probably easier to work with.

        Attachments

        1. 1.PNG
          1.PNG
          170 kB
        2. 2.PNG
          2.PNG
          121 kB
        3. evidence.PNG
          evidence.PNG
          62 kB
        4. image-2018-04-18-17-17-18-479.png
          image-2018-04-18-17-17-18-479.png
          115 kB
        5. image-2018-04-18-17-19-30-514.png
          image-2018-04-18-17-19-30-514.png
          63 kB
        6. testform.php
          0.8 kB

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              Eloy Lafuente (stronk7)
              Integrator:
              Jun Pataleta
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/18

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h