From f7cfa1874847f9ad9ef788b38f36e2b83443a559 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 11 Nov 2011 01:20:18 +0100 Subject: [PATCH] Fix: double screen when creating product with no ref --- htdocs/product/fiche.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index effd4f38e49..bb624706266 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -809,7 +809,7 @@ else * Product card */ - if ($id || $ref) + else if ($id || $ref) { $object=new Product($db); $object->fetch($id,$ref); @@ -834,13 +834,13 @@ else print ''; // Ref - print ''; + print ''; // Label - print ''; + print ''; // Status - print ''; // To Buy - print '
'.$langs->trans("Ref").'
'.$langs->trans("Ref").'
'.$langs->trans("Label").'
'.$langs->trans("Label").'
'.$langs->trans("Status").' ('.$langs->trans("Sell").')'; + print '
'.$langs->trans("Status").' ('.$langs->trans("Sell").')'; print '
'.$langs->trans("Status").' ('.$langs->trans("Buy").')'; + print '
'.$langs->trans("Status").' ('.$langs->trans("Buy").')'; print '