Error Messages for Start/End Filter for CF version 3.6.0

Error Messages for Start/End Filter for CF version 3.6.0

per David Heuring -
Nombre de respostes: 5

Using Moodle 3.5.1 and just upgraded configurable reports to the latest version - 3.6.0 (2019021500) today.  Now getting error messages for any reports using the Start/End filter.  I'm wondering if I need to have Moodle 3.6 installed to use the version.  If so I'll roll it back.  


But first, here are the error messages:


line 808 of /lib/moodlelib.php: coding_exception thrown

line 166 of /blocks/configurable_reports/report.class.php call to clearn_param()

line 80 of /blocks/configurable_reports/viewreports.php: call to report_base-->check_filters_request()


Thanks for any feedback on this.

Dave

Mitjana de qualificacions: -
En resposta a David Heuring

Re: Error Messages for Start/End Filter for CF version 3.6.0

per Sara Arjona Téllez -
Imatge Core developers Imatge Moodle HQ Imatge Particularly helpful Moodlers Imatge Peer reviewers Imatge Plugin developers Imatge Testers

Hi Dave!

Thanks for reporting this (and my apologies for the inconvenience). I've created an issue in the tracker (https://github.com/jleyva/moodle-block_configurablereports/issues/113) and I will try to fix as soon as I could (however, patches are welcomed if somebody can find a solution Complicitat ).

Cheers!

Sara

En resposta a Sara Arjona Téllez

Re: Error Messages for Start/End Filter for CF version 3.6.0

per David Heuring -

Thanks, Sara-

I can't code so will stand by.  Image below is the actual error messages..

Much appreciated.

David

Fitxer adjunt Untitled.png
En resposta a David Heuring

Re: Error Messages for Start/End Filter for CF version 3.6.0

per Лъчезар Лазаров -

Change line 166 of /blocks/configurable_reports/report.class.php
from
$val = clean_param($val, PARAM_CLEANHTML);
to
$val = clean_param_array($val, PARAM_CLEANHTML);

En resposta a Лъчезар Лазаров

Re: Error Messages for Start/End Filter for CF version 3.6.0

per Лъчезар Лазаров -

Change line 166 of /blocks/configurable_reports/report.class.php
from
$val = clean_param($val, PARAM_CLEANHTML);
to

 if (is_array($val) and is_callable('clean_param_array')) {

                                $val = clean_param_array($val, PARAM_CLEANHTML);

                        } else { 

                                $val = clean_param($val, PARAM_CLEANHTML);

                        }