From 660b85d58450432aaaa31f82f72eacb2539b5a1e Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 3 Oct 2010 17:22:18 +0000 Subject: [PATCH] Fix: problem with next/preview function --- htdocs/product/fiche.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 8e1639aa52d..1465062d9f1 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -852,11 +852,9 @@ if ($_GET["id"] || $_GET["ref"]) { if (empty($usecanvas)) { - if ($product->isservice()) { - print_fiche_titre($langs->trans('Modify').' '.$langs->trans('Service').' : '.$product->ref, ""); - } else { - print_fiche_titre($langs->trans('Modify').' '.$langs->trans('Product').' : '.$product->ref, ""); - } + $type = $langs->trans('Product'); + if ($product->isservice()) $type = $langs->trans('Service'); + print_fiche_titre($langs->trans('Modify').' '.$type.' : '.$product->ref, ""); if ($mesg) { print '
'.$mesg.'

';