Merged from 1.6. Fix for Bug #5682 - 'Reset template' button in CSS template

adds HTML.
This commit is contained in:
vyshane 2006-06-02 04:29:11 +00:00
parent 0b0b5ea4ed
commit f24eb26139

View File

@ -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')) {