From 1714bce8a1fb67b1175e7ef52e45649bce5993a2 Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Fri, 19 Oct 2018 08:53:01 +0200 Subject: [PATCH] New: works with variants: - Better function name --- htdocs/variants/class/ProductCombination.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/variants/class/ProductCombination.class.php b/htdocs/variants/class/ProductCombination.class.php index 130b18dafc5..c2e378d045d 100644 --- a/htdocs/variants/class/ProductCombination.class.php +++ b/htdocs/variants/class/ProductCombination.class.php @@ -330,7 +330,7 @@ class ProductCombination $child->price_autogen = $parent->price_autogen; $child->weight = $parent->weight + $this->variation_weight; $child->weight_units = $parent->weight_units; - $varlabel = $this->getLabelOfCombination($this->fk_product_child); + $varlabel = $this->getCombinationLabel($this->fk_product_child); $child->label = $parent->label.$varlabel; if ($child->update($child->id, $user) > 0) { @@ -688,9 +688,9 @@ WHERE c.fk_product_parent = ".(int) $productid." AND p.tosell = 1"; /** * Return label for combinations * @param int $prod_child id of child - * @return string combination label + * @return string combination label */ - public function getLabelOfCombination($prod_child) + public function getCombinationLabel($prod_child) { $label = ''; $sql = 'SELECT pav.value AS label';