mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merged from 1.6. Fix for Bug #5682 - 'Reset template' button in CSS template
adds HTML.
This commit is contained in:
parent
0b0b5ea4ed
commit
f24eb26139
@ -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')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user