mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #26985
[Bug 1457867] Re: Full-portfolio export doesn't include all artefacts
Here's how to replicate the specific bug caused by this problem:
0. Clean install of Mahara
1. Log in as admin
2. Upload some files into your Content -> Files area. (Don't use the images in any pages)
3. Go to Portfolio -> Export
4. Select the "All my data" option, and export.
5. Unzip the generated Leap2a file, and look for your uploaded files.
Expected result: You should see a copy of your uploaded files, in the Leap2a's "files" directory
Actual result: The Leap2a archive will not contain a copy of your uploaded files.
--
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/1457867
Title:
Full-portfolio export doesn't include all artefacts
Status in Mahara ePortfolio:
In Progress
Status in Mahara 15.04 series:
In Progress
Status in Mahara 15.10 series:
In Progress
Bug description:
Mahara Ver. 15.04
line 243 ~ 256 of /htdocs/export/lib.php
-------------------------------------------------------------------------------------
// Get the list of artefacts to export
if ($artefacts == self::EXPORT_ALL_ARTEFACTS) {
$query = 'SELECT id FROM {artefact} WHERE "owner" = ?';
$args = array($userid);
if (sizeof($tmpviews)) {
$query .= 'UNION
SELECT artefact
FROM {view_artefact}
WHERE "view" IN (SELECT id FROM {view} WHERE "owner" = ?)
ORDER BY id';
$args[] = $userid;
$this->artefactexportmode = $tempartefacts = get_column_sql($query, $args);
}
}
-------------------------------------------------------------------------------------
$tempartefacts is a is misspelled variable.
Correct variable name is $tmpartefacts.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1457867/+subscriptions
References