From: skodak Date: Mon, 11 Dec 2006 08:55:40 +0000 (+0000) Subject: MDL-7881 Reset js template should make the template empty X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5cd079644a431462b2a4a91b54a38eec288d9b38;p=moodle.git MDL-7881 Reset js template should make the template empty --- diff --git a/mod/data/lib.php b/mod/data/lib.php index 0a923121ab..f5a72926ba 100755 --- a/mod/data/lib.php +++ b/mod/data/lib.php @@ -322,7 +322,7 @@ function data_generate_default_template(&$data, $template, $recordid=0, $form=fa if (!$data && !$template) { return false; } - if ($template == 'csstemplate') { + if ($template == 'csstemplate' or $template == 'jstemplate' ) { return ''; }