Closed (fixed)
Project:
TouchPro
Version:
7.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2012 at 20:42 UTC
Updated:
22 Oct 2012 at 09:31 UTC
See #1382470: Content is right aligned for background information.
This theme applies special theming logic to any content type that contains a field named "field_image" regardless of the field type and regardless of whether or not the field is empty. The template.php file should be modified such that the logic is applied only if the field is populated, and only if the field is an "image" field.
Existing code in touchpro_preprocess_node():
if (isset($vars['field_image'])) {
$vars['classes_array'][] = 'node-imagefield';
}
Recommended change:
if (!empty($vars['field_image']) &&
$vars['elements']['field_image']['#field_type'] == 'image') {
$vars['classes_array'][] = 'node-imagefield';
}
Comments
Comment #1
jurriaanroelofs commentedfix
Comment #2.0
(not verified) commentedCorrected format of reference to related issue.