Ajout bouton de retour au produit après création de la catégorie
This commit is contained in:
parent
4ab9baf2bf
commit
c86014b5f0
@ -41,9 +41,9 @@ else
|
|||||||
$nbcats = 1;
|
$nbcats = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_REQUEST['origin'])
|
if ($_GET['origin'])
|
||||||
{
|
{
|
||||||
$idprodorigin = $_REQUEST['origin'];
|
$idprodorigin = $_GET['origin'];
|
||||||
}
|
}
|
||||||
|
|
||||||
llxHeader("","",$langs->trans("Categories"));
|
llxHeader("","",$langs->trans("Categories"));
|
||||||
|
|||||||
@ -203,7 +203,7 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
|
|
||||||
if ($user->rights->categorie->creer)
|
if ($user->rights->categorie->creer)
|
||||||
{
|
{
|
||||||
print '<td><a class="butAction" href="'.DOL_URL_ROOT.'/categories/fiche.php?action=create">'.$langs->trans("NewCat").'</a></td>';
|
print '<td><a class="butAction" href="'.DOL_URL_ROOT.'/categories/fiche.php?action=create&origin='.$product->id.'">'.$langs->trans("NewCat").'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user