From 4f93de6d0b902662058a07eea7811c512572a4e8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Aug 2020 23:30:53 +0200 Subject: [PATCH] Fix phpcs --- htdocs/variants/combinations.php | 56 ++++++++++++++++---------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/htdocs/variants/combinations.php b/htdocs/variants/combinations.php index 366d6ac5d2f..87d99bcae32 100644 --- a/htdocs/variants/combinations.php +++ b/htdocs/variants/combinations.php @@ -608,32 +608,32 @@ if (!empty($id) || !empty($ref)) // When in edit mode if (is_array($productCombination2ValuePairs1) && count($productCombination2ValuePairs1)) { - ?> - - - -
+ ?> + + + +
$val) { - $result1 = $prodattr->fetch($val->fk_prod_attr); - $result2 = $prodattr_val->fetch($val->fk_prod_attr_val); - //print 'rr'.$result1.' '.$result2; - if ($result1 > 0 && $result2 > 0) - { - print $prodattr->label.' - '.$prodattr_val->value.'
'; - // TODO Add delete link - } - } + foreach ($productCombination2ValuePairs1 as $key => $val) { + $result1 = $prodattr->fetch($val->fk_prod_attr); + $result2 = $prodattr_val->fetch($val->fk_prod_attr_val); + //print 'rr'.$result1.' '.$result2; + if ($result1 > 0 && $result2 > 0) + { + print $prodattr->label.' - '.$prodattr_val->value.'
'; + // TODO Add delete link + } + } ?> -
- - - - - - + + + + + + @@ -642,14 +642,14 @@ if (!empty($id) || !empty($ref)) global->PRODUIT_MULTIPRICES)) { - ?> + ?> > - fetchCombinationPriceLevels(); @@ -736,7 +736,7 @@ if (!empty($id) || !empty($ref)) if ($productCombinations) { - ?> + ?> -