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

Course autocomplete duplicated in report condition/filter

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • Hide
      1. Log in as admin
      2. Create two courses (Course 1..2)
      3. Navigate to Reports > Report builder > Custom reports in site administration
      4. Create a new report from the Courses report source, without default setup
      5. Add Course > Course full name column
      6. Press Settings > Conditions
      7. Add the Course > Select course condition
      8. Confirm the courses autocomplete element is shown only once
      9. Select the first test course, press Apply
      10. Confirm only the first course is listed in the report
      11. Press Reset all
      12. Press Settings > Filters
      13. Add the Course > Select course filter
      14. Press Preview
      15. Press Filters
      16. Confirm the courses autocomplete element is shown only once
      17. Select the first test course, press Apply
      18. Confirm only the first course is listed in the report
      19. Press Reset all
      20. Navigate back to list of custom reports
      21. Press View report for your custom report
      22. Press Filters
      23. Confirm the courses autocomplete element is shown only once
      24. Select the first test course, press Apply
      25. Confirm only the first course is listed in the report
      26. Press Reset all
      Show
      Log in as admin Create two courses (Course 1..2) Navigate to Reports > Report builder > Custom reports in site administration Create a new report from the Courses report source, without default setup Add Course > Course full name column Press Settings > Conditions Add the Course > Select course condition Confirm the courses autocomplete element is shown only once Select the first test course, press Apply Confirm only the first course is listed in the report Press Reset all Press Settings > Filters Add the Course > Select course filter Press Preview Press Filters Confirm the courses autocomplete element is shown only once Select the first test course, press Apply Confirm only the first course is listed in the report Press Reset all Navigate back to list of custom reports Press View report for your custom report Press Filters Confirm the courses autocomplete element is shown only once Select the first test course, press Apply Confirm only the first course is listed in the report Press Reset all

      See screenshots - notice the autocomplete element is duplicated:

      Conditions

      Filters

      Note that in each case the first autocomplete appears to be unusable, you can't select anything or apply it. Only the second is functional (also only apparent when on the editor - viewing the report from view.php page doesn't exhibit the same behaviour)

      Can we also change the lang string to match the format of the similar condition from the user entity:

      $string['userselect'] = 'Select user';
      

            pholden Paul Holden
            pholden Paul Holden
            Mikel Martín Corrales Mikel Martín Corrales
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Dongsheng Cai Dongsheng Cai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 55 minutes
                2h 55m

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