Details
Description
When creating a new feedback, a quick warning appears stating access to a non defined class variable id on line 296
here are the involved line (in the file mod/feedback/lib.php)
function feedback_set_events($feedback) {
// adding the feedback to the eventtable (I have seen this at quiz-module)
===> delete_records('event', 'modulename', 'feedback', 'instance', $feedback->id);
...
should be changed in
if (isset($feedback->id)) { delete_records('event', 'modulename', 'feedback', 'instance', $feedback->id); }
- it is reported in moodle core allthough the module is in the contributed area for the Moodle version I am using (1.9.2)
Hi Christian,
I can not see the problem. Whenever I call the function feedback_set_events($feedback) the variable $feedback is set and within the member $id.
Did you try the latest version for moodle 1.9.x?
Andreas