Fix mismatch

Closes https://github.com/mattbk/uc_views_attribute_fork/issues/9.
This commit is contained in:
mattbk
2015-12-20 17:23:18 -06:00
parent 8d70fb563f
commit 0e3a9f46d7

View File

@ -22,8 +22,8 @@ class uc_views_attribute_handler_field_order_product_attribute07 extends views_h
foreach ($data['attributes'] as $attribute => $option) { foreach ($data['attributes'] as $attribute => $option) {
$rows[] = t('@option', array('@attribute' => $attribute, '@option' => implode(', ', (array) $option))); $rows[] = t('@option', array('@attribute' => $attribute, '@option' => implode(', ', (array) $option)));
if (count($rows)) { if (count($rows)) {
//Grab the value for the sixth attribute. //Grab the value for the seventh attribute.
$result = $rows[5]; $result = $rows[6];
} }
} }
} }