Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-16968

Warning when creating a new feedback

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9.1, 1.9.2, 1.9.3
    • 1.9.2
    • Feedback
    • None
    • Moodle 1.9, Apache2, Debian4, php5, Mysql5
    • MySQL
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      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)

            grabs Andreas Grabs
            deligant Christian Deligant
            Tim Hunt Tim Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.