From: vyshane Date: Fri, 2 Jun 2006 04:29:11 +0000 (+0000) Subject: Merged from 1.6. Fix for Bug #5682 - 'Reset template' button in CSS template X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f24eb2613969448b090a4b217c6920aca3c18a59;p=moodle.git Merged from 1.6. Fix for Bug #5682 - 'Reset template' button in CSS template adds HTML. --- diff --git a/mod/data/lib.php b/mod/data/lib.php index 70d17ca991..2d3c2fcbc1 100755 --- a/mod/data/lib.php +++ b/mod/data/lib.php @@ -325,6 +325,9 @@ function data_generate_default_template(&$data, $template, $recordid=0, $form=fa if (!$data && !$template) { return false; } + if ($template == 'csstemplate') { + return ''; + } //get all the fields for that database if ($fields = get_records('data_fields', 'dataid', $data->id, 'id')) {