Commit d4ff4660 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Set container field to 1 for all plan artefacts


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent b2f2365b
......@@ -29,6 +29,10 @@ defined('INTERNAL') || die();
function xmldb_artefact_plans_upgrade($oldversion=0) {
if ($oldversion < 2010072302) {
set_field('artefact', 'container', 1, 'artefacttype', 'plan');
}
return true;
}
......
......@@ -60,6 +60,9 @@ class ArtefactTypePlan extends ArtefactType {
public function __construct($id = 0, $data = null) {
parent::__construct($id, $data);
if (empty($this->id)) {
$this->container = 1;
}
}
public static function get_links($id) {
......
......@@ -27,7 +27,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2010072301;
$config->version = 2010072302;
$config->release = '0.0.1';
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment