mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #20619
[Bug 1369315] Re: Can't edit group homepage template on upgraded site
Hi Kristina,
Ok, I've not been able to replicate yet but what I think has happened is
this.
In the template for displaying that page is:
{if !$view.submittedto && (!$view.locked || $editlocked)}
... display the edit button ...
{/if}
So I suspect in your case the view is locked for some reason.
You can check this out by looking at the db for the site page templates
by going:
SELECT v.* FROM "view" v WHERE v.owner = 0 ORDER BY v.title, v.id;
and seeing if any of the results have locked = 1
If it is the case that locked = 1 then I think the problem is caused by
the following code in the db/upgrade.php script:
if ($oldversion < 2014022400) {
// Make sure artefacts are properly locked for submitted views.
// Can be a problem for older sites
$submitted = get_records_sql_array("SELECT v.owner FROM {view_artefact} va
LEFT JOIN {view} v on v.id = va.view
LEFT JOIN {artefact} a on a.id = va.artefact
WHERE (v.submittedgroup IS NOT NULL OR v.submittedhost IS NOT NULL)", array());
if ($submitted) {
require_once(get_config('docroot') . 'artefact/lib.php');
foreach ($submitted as $record) {
ArtefactType::update_locked($record->owner);
}
}
}
I suspect something in your mahara instance had some views submitted and
somehow that made the group homepage template get marked as locked for
some reason.
--
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/1369315
Title:
Can't edit group homepage template on upgraded site
Status in Mahara ePortfolio:
New
Bug description:
Mahara 1.10 dev:
I upgraded my user manual Mahara instance from Mahara 1.9 to 1.10dev,
but don't have an edit button for the group homepage template under
Admin -> Config site -> Pages. I do see one on a fresh install.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1369315/+subscriptions
References