Commit 2f6f358c authored by merlinofchaos's avatar merlinofchaos

#104459: Correct theme wizard field names

parent 64373788
......@@ -104,3 +104,5 @@ Views 5.x-1.4-rc1
Views --dev
Bugs fixed:
o 109456: Match API documentation on 'field' definition on fields.
o 104459: Correct theme wizard field names.
......@@ -240,16 +240,18 @@ EOT;
// Set up the fields in nicely named chunks.
foreach ($view->field as $id => $field) {
$field_name = views_css_safe($field['field']);
$field_name = $field['field'];
$css_field_name = views_css_safe($field['field']);
if (isset($taken[$field_name])) {
$field_name = views_css_safe($field['queryname']);
$field_name = $field['queryname'];
$css_field_name = views_css_safe($field['queryname']);
}
$taken[$field_name] = true;
$output .= <<<EOT
<div class="view-label view-field-{$field_name}">
<div class="view-label view-field-{$css_field_name}">
<?php print \${$field_name}_label ?>
</div>
<div class="view-field view-data-{$field_name}">
<div class="view-field view-data-{$css_field_name}">
<?php print \${$field_name}?>
</div>
\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment