Passed
Pull Request — master (#193)
by
unknown
03:23 queued 40s
created
templates/client/html/catalog/detail/body.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,9 +54,10 @@
 block discarded – undo
54 54
         $preSelectVariantAttributes = '';
55 55
         if ($this->param( 'productId' ) && is_numeric($this->param( 'productId' ))):
56 56
 
57
-            if(($listItem = $this->detailProductItem->getListItem( 'product', 'default', (int) $this->param( 'productId' ))) && ( $product = $listItem->getRefItem() ) )
58
-
57
+            if(($listItem = $this->detailProductItem->getListItem( 'product', 'default', (int) $this->param( 'productId' ))) && ( $product = $listItem->getRefItem() ) ) {
58
+            
59 59
                     $attributes = $product->getRefItems('attribute',null,'variant');
60
+            }
60 61
 
61 62
                     foreach($attributes as $attribId => $attribute):
62 63
                         $preSelectVariantAttributes[$attribute->getType()] =  $attribute->getId();
Please login to merge, or discard this patch.