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

Warning when creating a new feedback

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: 1.9.1, 1.9.2, 1.9.3
    • Component/s: Feedback
    • Labels:
      None
    • Environment:
      Moodle 1.9, Apache2, Debian4, php5, Mysql5
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      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)

        Attachments

          Activity

            People

            • Assignee:
              grabs Andreas Grabs
              Reporter:
              deligant Christian Deligant
              Tester:
              Tim Hunt
              Participants:
              Component watchers:
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/May/08