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

Bulk actions should be disabled until a course/category is selected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6.1
    • 2.6
    • Course
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • wip-mdl-42403
    • Hide

      Test 1

      1. Run behat scenario "Test bulk action is shown only when some category/course is selected"
      2. Run behat --tags @core_course

      Test 2

      1. Go to "Manage courses and categories"
      2. Make sure "Move selected categories to" or "Move selected courses to" select option is disabled
      3. Select a category (click on checkbox next to category)
      4. Make sure "Move selected categories to" option is active
      5. Select and unselect another category and make sure "Move selected categories to" is still active
      6. Unselect all categories and "Move selected categories to" should be disabled
      7. Click on category with no courses
      8. Make sure "Move selected courses to" option is disabled
      9. Click on category with few courses and select a course
      10. Make sure "Move selected courses to" option is active
      11. Unselect all courses and make sure "Move selected courses to" is disabled.

      Test 3

      1. Turn off javascript and make sure "Move selected courses to" and "Move selected categories to" is always active.
      Show
      Test 1 Run behat scenario "Test bulk action is shown only when some category/course is selected" Run behat --tags @core_course Test 2 Go to "Manage courses and categories" Make sure "Move selected categories to" or "Move selected courses to" select option is disabled Select a category (click on checkbox next to category) Make sure "Move selected categories to" option is active Select and unselect another category and make sure "Move selected categories to" is still active Unselect all categories and "Move selected categories to" should be disabled Click on category with no courses Make sure "Move selected courses to" option is disabled Click on category with few courses and select a course Make sure "Move selected courses to" option is active Unselect all courses and make sure "Move selected courses to" is disabled. Test 3 Turn off javascript and make sure "Move selected courses to" and "Move selected categories to" is always active.

      Eloy shared this idea on MDL-42246.

      We should disable the bulk actions on the management interface until a course or category has been selected.
      Should be a trivial bit of JS

            rajeshtaneja Rajesh Taneja
            samhemelryk Sam Hemelryk
            Andrew Davis Andrew Davis
            Dan Poltawski Dan Poltawski
            Petr Skoda Petr Skoda
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.