Ajout bouton de retour au produit après création de la catégorie

This commit is contained in:
Regis Houssin 2006-03-25 17:02:50 +00:00
parent 4ab9baf2bf
commit c86014b5f0
2 changed files with 3 additions and 3 deletions

View File

@ -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"));

View File

@ -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&amp;origin='.$product->id.'">'.$langs->trans("NewCat").'</a></td>';
} }
print '</tr>'; print '</tr>';