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

Error when selecting "Choose..." in single-select elements

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.3.4, 3.4.1
    • Component/s: Analytics
    • Labels:
    • Testing Instructions:
      Hide

      Test 1

      1. Install moodle-local_testanalytics in your moodle instance's "local" folder

        git clone git://github.com/dmonllao/moodle-local_testanalytics testanalytics
        

      2. Create a course C1 without any user enrolled in it.
      3. Go to "Site administration > Analytics > Analytics settings"
      4. Disable 'onlycli' setting
      5. Go to "Site administration > Analytics > Analytics models"
      6. Execute "Actions > Get predictions" for the "No teaching" model
      7. Select "All predictions" on the "No teaching" model's "Insights" column.
      8. Press the back button of your browser.
      9. With "All predictions" currently selected for the "No teaching" model, change its value to "Choose...".
      10. Make sure no coding exception is thrown

      Test 2

      1. Go to a course and access its "Participants" page
      2. Use the main region admin menu (top right) to select "Permissions"
      3. Select a role and the form will be autosubmitted, go back using the browser back button
      4. Now the previously selected option will be pre selected for you, change to "Choose..." option
      5. The form should not be autosubmitted
      Show
      Test 1 Install moodle-local_testanalytics in your moodle instance's " local " folder git clone git://github.com/dmonllao/moodle-local_testanalytics testanalytics Create a course C1 without any user enrolled in it. Go to " Site administration > Analytics > Analytics settings " Disable 'onlycli' setting Go to " Site administration > Analytics > Analytics models " Execute "Actions > Get predictions" for the "No teaching" model Select "All predictions" on the "No teaching" model's "Insights" column. Press the back button of your browser. With "All predictions" currently selected for the "No teaching" model, change its value to "Choose...". Make sure no coding exception is thrown Test 2 Go to a course and access its "Participants" page Use the main region admin menu (top right) to select "Permissions" Select a role and the form will be autosubmitted, go back using the browser back button Now the previously selected option will be pre selected for you, change to "Choose..." option The form should not be autosubmitted
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-60675-master

      Description

      To reproduce:

      1. Install moodle-local_testanalytics in your moodle instance's "local" folder

        git clone git://github.com/dmonllao/moodle-local_testanalytics testanalytics
        

      2. Create a course C1 without any user enrolled in it.
      3. Go to "Site administration > Analytics > Analytics models"
      4. Execute "Actions > Get predictions" for the "No teaching" model.
        Note: If you don't see any actions listed, run cron instead.

        php admin/cli/cron.php
        

      5. Select "All predictions" on the "No teaching" model's "Insights" column.
      6. Press the back button of your browser.
      7. With "All predictions" currently selected for the "No teaching" model, change its value to "Choose...".
      8. A coding exception is then thrown:

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/Jan/18