Moodle

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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

Activity

Hide
Vy-Shane Sin Fat added a comment -

Thanks! Fixed. Can you test and close this issue?

Show
Vy-Shane Sin Fat added a comment - Thanks! Fixed. Can you test and close this issue?

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: