Fix: problem with next/preview function

This commit is contained in:
Regis Houssin 2010-10-03 17:22:18 +00:00
parent 56c85825f3
commit 660b85d584

View File

@ -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 '<br><div class="error">'.$mesg.'</div><br>';