Skip to content
Snippets Groups Projects
Commit b67ea0a0 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Fix serious bug in associated products.

parent 8ae165b6
Branches
Tags
No related merge requests found
......@@ -184,8 +184,11 @@ if ($id || $ref)
{
$productstatic->id=$value[1];
$productstatic->type=0;
$productstatic->ref=$value[0];
print $productstatic->getNomUrl(1).'<br>';
//$productstatic->ref=$value[0];
//var_dump($value);
//print '<pre>'.$productstatic->ref.'</pre>';
//print $productstatic->getNomUrl(1).'<br>';
print $value[0]; // This contains a tr line.
}
......@@ -344,7 +347,7 @@ if ($action == '')
if ( $user->rights->produit->creer)
{
print '<a class="butAction" href="'.DOL_URL_ROOT.'/product/sousproduits/fiche.php?action=edit&amp;id='.$product->id.'">'.$langs->trans("EditAssociate").'</a>';
print '<a class="butAction" href="'.DOL_URL_ROOT.'/product/sousproduits/fiche.php?action=edit&amp;id='.$id.'">'.$langs->trans("EditAssociate").'</a>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment