diff --git a/htdocs/product/composition/fiche.php b/htdocs/product/composition/fiche.php
index 206dd87ceae..d02253b4d24 100644
--- a/htdocs/product/composition/fiche.php
+++ b/htdocs/product/composition/fiche.php
@@ -198,9 +198,10 @@ if ($id || $ref)
print '';
// Number of subproducts
- $prodsfather = $product->getFather(); //Parent Products
+ $prodsfather = $product->getFather(); // Parent Products
$product->get_sousproduits_arbo();
- $nbofsubproducts=count($product->get_arbo_each_prod());
+ $prods_arbo=$product->get_arbo_each_prod();
+ $nbofsubproducts=count($prods_arbo);
print '
| '.$langs->trans("AssociatedProductsNumber").' | ';
print $form->textwithpicto($nbofsubproducts, $langs->trans('IfZeroItIsNotAVirtualProduct'));
print ' | ';
@@ -209,7 +210,6 @@ if ($id || $ref)
// List of products into this virtual product
- $prods_arbo = $product->get_arbo_each_prod();
if (count($prods_arbo) > 0)
{
print '
';
@@ -226,7 +226,8 @@ if ($id || $ref)
//print $productstatic->getNomUrl(1).' ';
//print $value[0]; // This contains a tr line.
print ' |
';
- print '| '.$productstatic->getNomUrl(1,'composition').' ('.$value['nb'].')     | ';
+ //print ''.$productstatic->getNomUrl(1,'composition').' ('.$value['nb'].($value['nb_total'] > $value['nb']?'->'.$value['nb_total']:'').')     | ';
+ print ''.$productstatic->getNomUrl(1,'composition').' ('.$value['nb_total'].')     | ';
if (! empty($conf->stock->enabled)) print ''.$langs->trans("Stock").' : '.$productstatic->stock_reel.' | ';
print '
';
}