From 8095e1e2ccb1b084c2136b988a927a60f8793d2e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 26 May 2010 15:09:53 +0000 Subject: [PATCH] Fix a lot of bugs after changes for canvas (photo hidden, edit field for accountancy disappeared, etc...). Too complicated to fix with canvas so I restore the "simple" code. Canvas feature should still works but with some bugs. --- htdocs/product/fiche.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index eecbee63c52..08856cd81d4 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -52,6 +52,7 @@ $fieldid = isset($_GET["ref"])?'ref':'rowid'; $socid=$user->societe_id?$user->societe_id:0; $result=restrictedArea($user,'produit|service',$id,'product','','',$fieldid); +// For canvas usage if (empty($_GET["canvas"])) { $_GET["canvas"] = 'default@product'; @@ -642,6 +643,8 @@ if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->righ else $title=$langs->trans("NewProduct"); print_fiche_titre($title); + if ($mesg) print $mesg."\n"; + print ''; print ''; print '
'.$langs->trans("Ref").'';