Commit c11ce374 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files
parents 89a7f5f2 2b3bf0e7
......@@ -132,6 +132,13 @@ class ArtefactTypeProfile extends ArtefactType {
}
}
public function set($field, $value) {
if ($field == 'title' && empty($value)) {
return $this->delete();
}
return parent::set($field, $value);
}
public function render($format, $options) {
if ($format == FORMAT_ARTEFACT_RENDERFULL) {
return $this->title;
......
......@@ -360,6 +360,7 @@ abstract class ArtefactType {
*/
public function delete() {
if (empty($this->id)) {
$this->dirty = false;
return;
}
......
......@@ -28,7 +28,7 @@ defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2007011600;
$config->release = '0.3.2';
$config->release = '0.3.6';
$config->minupgradefrom = 2006121501;
$config->minupgraderelease = '0.1 (build tag BUILD_20061215)';
......
Supports Markdown
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