mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #18724
[Bug 1310761] A change has been merged
Reviewed: https://reviews.mahara.org/3310
Committed: http://gitorious.org/mahara/mahara/commit/2e5cbc14af9c87aa8cd45715b90a446eb7e2b714
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch: 1.9_STABLE
commit 2e5cbc14af9c87aa8cd45715b90a446eb7e2b714
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date: Tue Apr 22 07:43:34 2014 +1200
Public group with allow submissions ticked causes error (Bug #1310761)
This is due to the dummy 'root' user having the same id, which is 0, as
an anonymous user.
Needed to not include the dummy 'root' profile page in the get views
and collections db call.
Change-Id: Id349bdb193e510df5ecbc6f76a6324dbc15a2a57
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1310761
Title:
public group and allow submissions problem
Status in Mahara ePortfolio:
Fix Committed
Status in Mahara 1.8 series:
New
Status in Mahara 1.9 series:
Fix Committed
Bug description:
When making public a group that has Allow submissions also ticked we
get this error:
[WAR] b7 (lib/user.php:1678) profile_url called with no user id
Call stack (most recent first):
profile_url(object(stdClass), false) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/view.php:4602
View->get_url(false) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/view.php:4272
View::get_extra_view_info(array(size 1), false, false) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/view.php:4863
View::get_views_and_collections(0) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/group.php:1272
group_view_submission_form("1") at /home/robertl/htdocs/mahara-testing/mahara/htdocs/blocktype/groupviews/lib.php:162
PluginBlocktypeGroupViews::get_data("1") at /home/robertl/htdocs/mahara-testing/mahara/htdocs/blocktype/groupviews/lib.php:56
PluginBlocktypeGroupViews::render_instance(object(BlockInstance)) at Unknown:0
The problem stems from an anonymous user viewing the public group
being assigned the same id, which is zero, as the structural dummy
user. That dummy user has a default 'profile' page and this is causing
the problems.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1310761/+subscriptions
References