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

Double encoded custom field names in report editor

XMLWordPrintable

    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-82488-403
    • MDL-82488-404
    • Hide
      1. Log in as admin
      2. Navigate to Courses > Course custom fields
      3. Create a new Short text custom field
        • Name: This & That > There
        • Short name: field1
      4. Navigate to Reports from user menu
      5. Create new report from Courses report source
        • Include default setup: No
      6. Add the Course • This & That > There column to report
      7. Confirm report table does not double encode the column name
      8. Add the Course • This & That > There condition to report
      9. Confirm condition container does not double encode the condition name
      10. Add the Course • This & That > There filter to report
      11. Confirm filter container does not double encode the condition name
      Show
      Log in as admin Navigate to Courses > Course custom fields Create a new Short text custom field Name: This & That > There Short name: field1 Navigate to Reports from user menu Create new report from Courses report source Include default setup: No Add the Course • This & That > There column to report Confirm report table does not double encode the column name Add the Course • This & That > There condition to report Confirm condition container does not double encode the condition name Add the Course • This & That > There filter to report Confirm filter container does not double encode the condition name

      See screenshot:

      Course custom field names become double encoded; User profile field names work as expected

      It's being escaped here - we should allow for callers to specify whether or not they want the returned string escaped

        1. MDL-82488.png
          128 kB
          Ron Carl Alfon Yu
        2. Screenshot 2024-07-15 at 22-28-10 cp Docker.png
          57 kB
          Paul Holden

            pholden Paul Holden
            pholden Paul Holden
            Stevani Andolo Stevani Andolo
            Ilya Tregubov Ilya Tregubov
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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