From 5cd079644a431462b2a4a91b54a38eec288d9b38 Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 11 Dec 2006 08:55:40 +0000 Subject: [PATCH] MDL-7881 Reset js template should make the template empty --- mod/data/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ''; } -- 2.39.5