Modif $head=product_prepare_head($product, $user);
This commit is contained in:
parent
5e4701b28e
commit
bd53417ca3
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2005-2006 Regis Houssin <regis.houssin@cap-networks.com>
|
/* Copyright (C) 2005-2006 Regis Houssin <regis.houssin@cap-networks.com>
|
||||||
|
* Copyright (C) 2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -39,11 +40,9 @@ $user->getrights('produit');
|
|||||||
if (!$user->rights->produit->lire)
|
if (!$user->rights->produit->lire)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
|
|
||||||
$types[0] = $langs->trans("Product");
|
$types[0] = $langs->trans("Product");
|
||||||
$types[1] = $langs->trans("Service");
|
$types[1] = $langs->trans("Service");
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
@ -139,7 +138,7 @@ if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
|
|||||||
llxHeader("","",$langs->trans("Translation"));
|
llxHeader("","",$langs->trans("Translation"));
|
||||||
|
|
||||||
|
|
||||||
$head=product_prepare_head($product);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
if ( $_GET["action"] != 'edit') dolibarr_fiche_head($head, 'translation', $titre);
|
if ( $_GET["action"] != 'edit') dolibarr_fiche_head($head, 'translation', $titre);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user