|
|
Getting this error:
- line 263 of lib/grade/grade_scale.php: call to debugging()
- line 121 of grade/edit/scale/index.php: call to grade_scale->is_used()
Please notify the developer of module "feedback" that new function module_scale_used_anywhere() should be implemented.
Put following function into /mod/feedback/lib.php and has fixed problem.
/**
- Checks if scale is being used by any instance of feedback
*
- This is used to find out if scale used anywhere
- @param $scaleid int
- @return boolean True if the scale is used by any forum
*/
function feedback_scale_used_anywhere($scaleid) {
if ($scaleid and record_exists('feedback', 'scale', -$scaleid)) {
return true;
} else {
return false;
}
}
Regards,
Troy
|
|
Description
|
Getting this error:
- line 263 of lib/grade/grade_scale.php: call to debugging()
- line 121 of grade/edit/scale/index.php: call to grade_scale->is_used()
Please notify the developer of module "feedback" that new function module_scale_used_anywhere() should be implemented.
Put following function into /mod/feedback/lib.php and has fixed problem.
/**
- Checks if scale is being used by any instance of feedback
*
- This is used to find out if scale used anywhere
- @param $scaleid int
- @return boolean True if the scale is used by any forum
*/
function feedback_scale_used_anywhere($scaleid) {
if ($scaleid and record_exists('feedback', 'scale', -$scaleid)) {
return true;
} else {
return false;
}
}
Regards,
Troy |
Show » |
|
Looking for an answer to the debugging error you commented, I have found this bug.
Does your patch fix the problem? If it does, maybe someone could update feedback with the patch on it.
Anyway unless someone fixes this on a different way, we would use your patch Troy, thanks for the fix.