Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moodle 2.8 coding error when browsing tickets #13

Open
supton-overtsoftware opened this issue Jul 28, 2015 · 0 comments
Open

Moodle 2.8 coding error when browsing tickets #13

supton-overtsoftware opened this issue Jul 28, 2015 · 0 comments

Comments

@supton-overtsoftware
Copy link

Using MOODLE_28_STABLE branch and receiving the coding error when browsing support tickets and the logs provide the following info:

Default exception handler: Coding error detected, it must be fixed by a programmer: PHP catchable fatal error Debug: Argument 3 passed to moodle_database::get_records_list() must be of the type array, string given, called in [dirroot]/mod/tracker/views/viewanissue.html on line 276 and defined
Error code: codingerror
* line 393 of /lib/setuplib.php: coding_exception thrown
* line 1276 of /lib/dml/moodle_database.php: call to default_error_handler()
* line 276 of /mod/tracker/views/viewanissue.html: call to moodle_database->get_records_list()
* line 186 of /mod/tracker/view.php: call to include()
, referer: http://www.crossfieldslearning.com/mod/tracker/view.php?id=1984&view=view&screen=browse

Managed to fix by changing [dirroot]/mod/tracker/views/viewanissue.html on line 276

if ($subtrackers = $DB->get_records_list('tracker', array('id' => $tracker->subtrackers), 'name', 'id,name,course')) {

to

if ($subtrackers = $DB->get_records_list('tracker','id', tracker->subtrackers, 'name', 'id,name,course')) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant