Skip to content

Releases

5.3.3

Choose a tag to compare

@jleyva jleyva released this 10 Nov 12:04
5dc18a2

5.3.3 (2027050405) for Moodle 4.0 and later

Release date: 10.11.2026

Requires PHP 8.0 or later.

Changes to check when upgrading:

  • Custom SQL reports only accept queries that read data, so the query has to
    start with SELECT or WITH (comments and placeholders before it are fine).
    INSERT and CREATE are still allowed when SQL execution is enabled on the
    server and SQL security is off. The EXEC, EXECUTE and UESCAPE keywords
    are no longer accepted.
  • The courses, categories, subcategories, course modules, user, users, enrolled
    students, role, semester and year filters now narrow the elements the report
    conditions select, instead of replacing them with the chosen value.

Fixes

  • GitHub issue #302: links built in SQL reports that contain a question mark
    work again.
  • CONTRIB-4262: the user field column shows the user creation time as a date.
  • CONTRIB-9879, CONTRIB-9881 and CONTRIB-9882: importing reports from the GitHub
    repository no longer lists the README or the repository root as reports,
    shows no "undefined" reports when GitHub answers with an error such as the
    rate limit, and fails cleanly instead of raising PHP warnings.
  • The user field filter only uses columns of the user table.
  • Semicolons and line breaks in cells no longer break SYLK exports.
  • Timeline reports require an interval of at least one day, checked on the
    server too, and their rows stop at the report limit setting. Pie and line
    chart sizes are capped.
  • Imported reports keep only the column alignment and size values the column
    form allows, and their element ids are validated.

Other changes

  • The cohort and competency filters, which sat outside components/filters/ and
    were never loaded, were removed.
  • The GitHub repository was renamed to moodle-block_configurable_reports.
  • More PHPUnit tests for the SQL reports, filters and user field column.

5.3.2

Choose a tag to compare

@jleyva jleyva released this 01 Nov 14:44
072156b

Requires PHP 8.0 or later.

Security

Several security fixes from a review of the whole plugin by MDL Shield. Upgrading
is recommended. Permissions are now checked in the course the report belongs to,
editing and importing reports require a sesskey and, for SQL reports, the
managesqlreports capability, imported reports are validated, report output is
escaped, every filter binds its values as SQL parameters, and fetching reports
from GitHub verifies TLS certificates.

Changes to check when upgrading:

  • %%FILTER_VAR%% is now bound as a value, so it can be used anywhere a value is
    valid, such as WHERE cm.id = %%FILTER_VAR%%, and the URL can no longer add
    SQL. Reports that passed a whole condition in the URL have to move it into the
    query: AND u.city = %%FILTER_VAR%% with filter_var=Madrid (CONTRIB-10669).
  • With SQL security enabled, the keyword and semicolon check also runs when a
    report runs, so imported or older reports that break it stop running.
  • Password, secret and sesskey columns are never shown or used in conditions and
    filters, and ?debug=1 only shows the query to users who can manage SQL reports.
  • Emails sent from a report only go to active users enrolled in its course.
  • manageownreports is now flagged with the personal data, spam and XSS risks.

Fixes

  • GitHub issues #121, #145, #190, #191, #220, #228, #232, #233, #242, #259, #266,
    #267, #278, #281, #299 and #300.
  • Tracker issues CONTRIB-4159, CONTRIB-4937, CONTRIB-8676, CONTRIB-8780,
    CONTRIB-9739, CONTRIB-9932 and CONTRIB-10669.
  • Embedded report columns are scoped to the course again and no longer crash when
    the embedded report has no conditions, and the custom SQL page no longer throws
    a JavaScript error when no remote repository is set.
  • Several filter and column bugs found while adding tests, such as the course
    categories filter leaving out the courses in subcategories, and the user and
    course statistics columns failing with a date range or with no roles selected.

Other changes

  • Scheduled SQL reports run from a scheduled task, as Moodle no longer runs the
    legacy block cron.
  • Events are logged when reports are viewed, created, updated, deleted and
    exported.
  • Every chart is drawn with pChart2, so the unmaintained pChart 1.x is gone, and
    the bundled Tahoma font was replaced with the OFL licensed Cairo font.
  • PHPUnit and Behat tests cover every report type, the filters, the import path,
    the web service and the security fixes, and run in GitHub Actions together with
    the AMD build and stylelint checks.
  • Deprecated core APIs such as xmlize() and lib/externallib.php were replaced,
    and thirdpartylibs.xml lists the bundled libraries with their real versions
    and licences.
  • Releases are packaged from the tag and published to the Moodle plugins directory
    by a GitHub workflow.
  • README.txt was split into README.md and this changelog.

5.3.1

Choose a tag to compare

@jleyva jleyva released this 19 Oct 08:20

What's Changed

  • Fix issues 294 295 296 297 in #298
  • Added new unit tests

Full Changelog: 5.3.0...5.3.1

5.3.0

Choose a tag to compare

@jleyva jleyva released this 19 Oct 08:19

What's Changed

  • Add Moodle Playground demo (blueprint + README badge) by @erseco in #290

New Contributors

Full Changelog: 5.2.0...5.3.0

5.2.0

Choose a tag to compare

@jleyva jleyva released this 04 May 11:52

What's Changed

New Contributors

Full Changelog: 4.5.0...5.2.0

4.5.0

Choose a tag to compare

@jleyva jleyva released this 06 Nov 11:33
2c2ac93

What's Changed

New Contributors

Full Changelog: 4.1.0...4.5.0

4.1.0

Choose a tag to compare

@jleyva jleyva released this 06 May 08:12
44a2f36

Thanks Lesterhuis Training & Consultancy for upgrading the plugin to make it Moodle LMS 4.1 compatible.

3.9.0

Choose a tag to compare

@jleyva jleyva released this 03 Nov 16:31
  • Starting this version for allowing SQL queries performing data insertion/creation the following configuration variable set to 1
    is required in your site root /config.php:
    $CFG->block_configurable_reports_enable_sql_execution = 1;
    Otherwise, previous Custom SQL reports performing data insertion/creation will stop working.
  • Added matching colors to pie charts
  • Added unmapped palette for general colors to pie charts
  • Changed fuserfield to allow for multiple instances of the filter
  • Added alphabetical sort to courses filter
  • Added webservice to get reports data
  • Added new filters for competencies
  • Other fixes and improvements:
    • Fix offset error for bar graphs when not using SQL reporting
    • Removed default sorting from DataTables JS UI
    • Fixed issue where colors would mismatch if values weren't present
    • Fixed STARTTIME and ENDTIME variable substitution
    • Avoid text filtering when exporting

Thanks Alex Rowe, David Saylor, Michael Gardener, Muhammad Osama Arshad, Daniel Poggenpohl, Daniel Neis, François Parlant and all the contributors who have sent several fixes and improvements.

3.8.0

Choose a tag to compare

@sarjona sarjona released this 20 Dec 10:17
  • Order the list of users in users filter by fullname considering language - #130
  • Other fixes and improvements:
    • Fix template array error - #132
    • Fix DB mismatch between install.xml and upgrade.php - #123
    • Fix LIMIT error for MSSQL - CONTRIB-7891
    • Remove "_" from the table header titles - #137
    • Review supported Moodle versions, because the core_userlist_provider interface is only supported from 3.4 onwards - #125

Thanks Mike McDougal (mcdoogs), Tuan Ngoc Nguyen (tuanngocnguyen), Mike Henry (mhenry79mnet), safatshahinsd, kristian-94 and all the contributors who have sent several fixes and improvements.
And special thanks also to Carlos, Moodle HQ and Juan for letting Sara work on this again during the project week.

3.3.0

Choose a tag to compare

@sarjona sarjona released this 20 Dec 10:20
  • Order the list of users in users filter by fullname considering language - #130
  • Add a new calculation type: percentage
  • Allow userfields to be used more than once in the permissions
  • Move JS to AMD modules
  • Upgrade some 3rd party JS libraries
  • Fix import from XML
  • Review the year filter to take min and max years from the calendar factory
  • Other fixes and improvements:
    • Fix template array error - #132
    • Fix DB mismatch between install.xml and upgrade.php - #123
    • Fix LIMIT error for MSSQL - CONTRIB-7891
    • Remove "_" from the table header titles - #137
    • Review supported Moodle versions, because the core_userlist_provider interface is only supported from 3.4 onwards - #125
    • Fix error when using templates
    • Fix error when using the Start/End filter
    • Fix legacy_polyfill error when running unit tests
    • Display custom title for the block
    • Replace deprecated methods (htmleditor, pix_url and coursecat)
    • Remove CSS files not found error in JS console
    • Show breadcrumbs for users without manage report capability
    • Fix DB query function call for the enrolled students filter
    • Raise the memory limit when exporting
    • Clean some request parameters before using them
    • Fix error with user field search box filter
    • Improve compatibility with PostgreSQL when importing

Thanks Mike McDougal (mcdoogs), Tuan Ngoc Nguyen (tuanngocnguyen), Mike Henry (mhenry79mnet), safatshahinsd, kristian-94, David (davidpesce), Dimitrii (dmitriim), Alex (agrowe), Donald (emyb2), sopnep15, Danniel (dannielarriola) and all the contributors who have sent several fixes and improvements.
And special thanks also to Carlos, Sander, Moodle HQ and Juan for letting Sara work on this again during the project week.