Look: Minor estethic change on linked products.
This commit is contained in:
parent
7e60f2f3c4
commit
dc5addb8a4
@ -54,9 +54,11 @@ $action=isset($_GET["action"])?$_GET["action"]:$_POST["action"];
|
||||
$cancel=isset($_GET["cancel"])?$_GET["cancel"]:$_POST["cancel"];
|
||||
|
||||
$product = new Product($db);
|
||||
$productid=0;
|
||||
if ($id || $ref)
|
||||
{
|
||||
$result = $product->fetch($id,$ref);
|
||||
$productid=$product->id;
|
||||
}
|
||||
|
||||
|
||||
@ -131,12 +133,12 @@ if ($cancel == $langs->trans("Cancel"))
|
||||
* View
|
||||
*/
|
||||
|
||||
$productstatic = new Product($db);
|
||||
$html = new Form($db);
|
||||
|
||||
llxHeader("","",$langs->trans("CardProduct".$product->type));
|
||||
$html = new Form($db);
|
||||
|
||||
$productstatic = new Product($db);
|
||||
|
||||
if ($mesg) {
|
||||
print '<br><div class="error">'.$mesg.'</div><br>';
|
||||
@ -374,7 +376,7 @@ if ($action == '')
|
||||
{
|
||||
if ($user->rights->produit->creer || $user->rights->service->creer)
|
||||
{
|
||||
print '<a class="butAction" href="'.DOL_URL_ROOT.'/product/sousproduits/fiche.php?action=edit&id='.$product->id.'">'.$langs->trans("EditAssociate").'</a>';
|
||||
print '<a class="butAction" href="'.DOL_URL_ROOT.'/product/sousproduits/fiche.php?action=edit&id='.$productid.'">'.$langs->trans("EditAssociate").'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user