bug in context-path for groups?

bug in context-path for groups?

by Peter Ritter -
Number of replies: 0
Hi there,

We used to work on an activity-module for the 1.9-development version. All worked fine und now we switched to begin testing with the beta-version.
And as I have seen the DB-table for context now includes the context-path, so that the function get_parent_contexts($context) just has to read this out.
But I guess there is a bug somewhere when this path is written into DB. For my purposes I have a certain group in a course that is in a course-category (which is in the system, of course).
So I would expect the depth of the context for the group to be 4 with the IDs of the other contexts. But it is 2 for all my groups, just including the system-context and the group itself. So get_parent_contexts($context) could not find all the real parent contexts and our code won't work any more.
Is this behaviour intended or is it a bug???
If it is intended, I guess we have to fix our code - otherwise I could open a bug in the tracker.

Thanks for your help
Peter

Average of ratings: -