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

Adding custom classes to report columns not working

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-77150-401
    • Hide

      Testing on master

      Setup

      1. Download MDL-77150.diff patch (to add some extra classes to system/custom reports) to your moodle root instance.
      2. Apply the patch

        git apply MDL-77150.diff

      3. Log in as admin
      4. Navigate to Reports in user menu
      5. Create new report from Users report source, with default setup

      Test custom attributes in a system report

      1. Navigate to Reports in user menu
      2. Confirm that the report background is displayed in orange colour

      Test custom attributes in a custom report (view page)

      1. Navigate to Reports in user menu
      2. Click on View report option in the report action menu
      3. Confirm that the report background is displayed in orange colour

      Test custom attributes in a custom report (edit page)

      1. Navigate to Reports in user menu
      2. Click on Edit report content option in the report action menu
      3. Confirm that the report background is not displayed in orange colour

      Test custom attributes in a table column

      1. Navigate to Reports in user menu
      2. Confirm that the "Report source" column text is displayed in red colour

      Testing on 4.0 / 4.1

      Setup

      1. Download MDL-77150-backport.diff patch (to add some extra classes to reports list column) to your moodle root instance.
      2. Apply the patch

        git apply MDL-77150-backport.diff

      3. Log in as admin
      4. Navigate to Reports in user menu
      5. Create new report from Users report source, with default setup

      Test custom attributes in a table column

      1. Navigate to Reports in user menu
      2. Confirm that the "Report source" column text is displayed in red colour
      Show
      Testing on master Setup Download MDL-77150.diff  patch (to add some extra classes to system/custom reports) to your moodle root instance. Apply the patch git apply MDL-77150.diff Log in as admin Navigate to Reports in user menu Create new report from Users report source, with default setup Test custom attributes in a system report Navigate to Reports in user menu Confirm that the report background is displayed in orange colour Test custom attributes in a custom report (view page) Navigate to Reports in user menu Click on View report option in the report action menu Confirm that the report background is displayed in orange colour Test custom attributes in a custom report (edit page) Navigate to Reports in user menu Click on Edit report content option in the report action menu Confirm that the report background is not displayed in orange colour Test custom attributes in a table column Navigate to Reports in user menu Confirm that the "Report source" column text is displayed in red colour Testing on 4.0 / 4.1 Setup Download MDL-77150-backport.diff  patch (to add some extra classes to reports list column) to your moodle root instance. Apply the patch git apply MDL-77150-backport.diff Log in as admin Navigate to Reports in user menu Create new report from Users report source, with default setup Test custom attributes in a table column Navigate to Reports in user menu Confirm that the "Report source" column text is displayed in red colour
    • WP Sprint 2023-I1.2 (Paul)

      In core_reportbuilder\local\report\column,  the method add_attributes is supposed to handle "class" attributes too (to add custom classes to every cell in the column), but they are not being added to the DOM.
      Also, In core_reportbuilder\local\report\base,  the method add_attributes is supposed to handle "class" attributes too (to add custom classes to the report), but they are not being added to the DOM. (Only for 4.2)

            mikelmartíncorrales Mikel Martín Corrales
            mikelmartíncorrales Mikel Martín Corrales
            Paul Holden Paul Holden
            Andrew Lyons Andrew Lyons
            Kim Jared Lucas Kim Jared Lucas
            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 - 5 hours
                5h

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