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.
This commit is contained in:
parent
55eead636f
commit
8095e1e2cc
@ -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 '<table class="border" width="100%">';
|
||||
print '<tr>';
|
||||
print '<td class="fieldrequired" width="20%">'.$langs->trans("Ref").'</td><td><input name="ref" size="40" maxlength="32" value="'.$_POST["ref"].'">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user