Moodle

Grades are not displayed because gradebookroles cannot be set

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7, 1.7.1, 1.7.2, 1.8, 1.8.1, 1.8.2
  • Fix Version/s: 1.7.3
  • Component/s: Gradebook
  • Labels:
    None
  • Affected Branches:
    MOODLE_17_STABLE, MOODLE_18_STABLE
  • Fixed Branches:
    MOODLE_17_STABLE

Description

No notes are displayed OR message "no roles defined in admin->appearance->graderoles".

You can fix this error by going to /grade/lib.php and change the following line ( line 3682 in lib.php v1.3):
$configvar = get_config('', 'gradebookroles');
to
$configvar->value = get_config('', 'gradebookroles');

See : http://moodle.org/mod/forum/discuss.php?d=62380

Thanks to Chris Meyer

Issue Links

Activity

Hide
Yu Zhang added a comment -

hi Arnaud,

I have read the forum and I do not really understand the issue. Can you please describe in detail what this is about? I have tested with the latest 1.8+ with no gradebookroles set, and I can see the message message "no roles defined in admin->appearance->graderoles".

Thanks,

Yu

Show
Yu Zhang added a comment - hi Arnaud, I have read the forum and I do not really understand the issue. Can you please describe in detail what this is about? I have tested with the latest 1.8+ with no gradebookroles set, and I can see the message message "no roles defined in admin->appearance->graderoles". Thanks, Yu
Hide
Yu Zhang added a comment -

I see the problem in 1.7 now, will fix in a second, I think this is already fixed in 1.8, isn't it?

Show
Yu Zhang added a comment - I see the problem in 1.7 now, will fix in a second, I think this is already fixed in 1.8, isn't it?
Hide
Yu Zhang added a comment -

Fixed in 1.7 and should have been fixed in 1.8 on, please reopen if needed.

Show
Yu Zhang added a comment - Fixed in 1.7 and should have been fixed in 1.8 on, please reopen if needed.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: