Comment 5 for bug 1099811

Revision history for this message
davosmith (8-launchpad-davosmith-co-uk) wrote :

I've been getting a similar problem on a client's site.

When a new page is created within a group, the 'group' is set, but the 'owner' field is not set (I've traced through lib/view.php: function View::_create() and there is nowhere that I can see that makes any attempt to set the 'owner' field for group pages).

When you try to add anything to the page, the function activity_occurred('watchlist', $data) is called (line 1369 of view.php, in function process_changes). This then reaches ActivityTypeWatchlist::__construct(), which throws an exception if the 'owner' field is not set.

I'm afraid I'm not yet very familiar with the internals of Mahara (I am a Moodle developer most of the time), so I'm not quite sure which of these two functions are behaving incorrectly (the View::_create() function for not setting the 'owner' or the ActivityTypeWatchlist::__construct() function for expecting it to be set).