Repository navigation
Releases
5.3.3
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 withSELECTorWITH(comments and placeholders before it are fine).
INSERTandCREATEare still allowed when SQL execution is enabled on the
server and SQL security is off. TheEXEC,EXECUTEandUESCAPEkeywords
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
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 asWHERE 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%%withfilter_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=1only shows the query to users who can manage SQL reports. - Emails sent from a report only go to active users enrolled in its course.
manageownreportsis 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()andlib/externallib.phpwere replaced,
andthirdpartylibs.xmllists 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.txtwas split intoREADME.mdand this changelog.
5.3.1
5.3.0
5.2.0
What's Changed
- #286 Fix security issue
- Fix search text with operator ~ case insensitive for PostgreSQL by @rmady in #283
- Fix RTL cursor issue in editor by @kirildevlion in #280
- Fix unit test failure test_db_install_file by @Fragonite in #274
- Fix Undefined property: stdClass::$title notice by @luisdev in #269
- #247 [CONTRIB-9748] The deprecated function get_all_user_name fields should be replaced if possible by @minhduchoang195 in #265
- Fixes #172 by @marcelorhmaia in #262
- Update evalwise.class.php by @alonsoarias in #258
New Contributors
- @rmady made their first contribution in #283
- @kirildevlion made their first contribution in #280
- @Fragonite made their first contribution in #274
- @luisdev made their first contribution in #269
- @minhduchoang195 made their first contribution in #265
- @alonsoarias made their first contribution in #258
Full Changelog: 4.5.0...5.2.0
4.5.0
What's Changed
- fix webservice calls when missing user by @danielneis in #250
- Issue with downloading a filtered report by @luukverhoeven in #248
- Apply format_string on the breadcrumb navigation by @golenkovm in #181
- csv delimiter settings by @Tsheke in #214
- Set current courseid when importing a custom SQL report. by @reskit in #223
- Fixes #147 by @marcelorhmaia in #231
- User Profile Fields Language Filter Fix by @sameer-ah in #189
- Fix 201: Process report names / filenames through Moodle filters by @michael-milette in #238
- FIX-226: Stop getting string from report_customsql plugin by @michael-milette in #227
- Set BOM for CSV export closes #198 by @mvaraujo in #199
- Provide support for SYLK export #200 by @mvaraujo in #203
- Fix issue #62 Error with apostrophe by @TomoTsuyuki in #211
- Export multilanguage support by @Tsheke in #215
- Add embed options by @keevan in #182
- fix variable redeclaration by @danielneis in #256
New Contributors
- @luukverhoeven made their first contribution in #248
- @golenkovm made their first contribution in #181
- @Tsheke made their first contribution in #214
- @reskit made their first contribution in #223
- @marcelorhmaia made their first contribution in #231
- @sameer-ah made their first contribution in #189
- @TomoTsuyuki made their first contribution in #211
- @keevan made their first contribution in #182
Full Changelog: 4.1.0...4.5.0
4.1.0
3.9.0
- 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
- Order the list of users in users filter by fullname considering language - #130
- Other fixes and improvements:
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
- 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.