]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-7881 Reset js template should make the template empty
authorskodak <skodak>
Mon, 11 Dec 2006 08:55:40 +0000 (08:55 +0000)
committerskodak <skodak>
Mon, 11 Dec 2006 08:55:40 +0000 (08:55 +0000)
mod/data/lib.php

index 0a923121ab7321be0cb30721bb8510d74f3ac063..f5a72926ba46828f72b67759037c5a20c5d45bf6 100755 (executable)
@@ -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 '';
     }