Moodle

current group is not being saved in session

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Duplicate
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Groups
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

$currentgroup = groups_get_activity_group($cm, true);

Does not appear to be saving the current group in the session var any more. I find that if I change the group to any group and then load the page again without the group=x part of the url then the current group is reset to int(0) or 'All Participants'

I see this behaviour both in the forum module and the quiz overview and other reports.

I'm assuming this is related to Petr's recent SESSION handling changes and so assigning to him.

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

does not work, the __set() and __get() support in PHP objects seems to be really borked a lot === useless; I might have to rewrite the session code again

Show
Petr Škoda (skodak) added a comment - does not work, the __set() and __get() support in PHP objects seems to be really borked a lot === useless; I might have to rewrite the session code again
Hide
Petr Škoda (skodak) added a comment -

the problem was somewhere else, see the linked bug
thanks for the report

Show
Petr Škoda (skodak) added a comment - the problem was somewhere else, see the linked bug thanks for the report

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: