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

In qanda forum: Undefined property: object::$id

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.7.2, 1.8
    • Component/s: Forum
    • Labels:
      None
    • Environment:
      PHP Version 5.1.6
      Moodle 1.7+ (2006101007)
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      Creating post in forum qanda for student, it shows the followin message:

      > Notice: Undefined property: object::$id in /...../mod/forum/post.php on line 754

      The line 754 in my file is:

      > if ($forum->type == 'qanda' && !has_capability('mod/forum:viewqandawithoutposting', $modcontext) &&
      > !forum_user_has_posted($forum->id,$discussion->id,$USER->id))

      { > notify(get_string('qandanotify','forum')); > }

      I want to know if this bug has been alredy fixed

        Attachments

          Activity

            People

            Assignee:
            vyshane Vy-Shane Sin Fat
            Reporter:
            cirano David Herney Bernal
            Tester:
            Nobody
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              30/Mar/07