Skip to content
Snippets Groups Projects
Commit 56f626da authored by Regis Houssin's avatar Regis Houssin
Browse files

Works on product canvas and templates

parent 8d40f1ee
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,7 @@ if ($_POST["action"] == 'add' && ($user->rights->produit->creer || $user->rights ...@@ -130,7 +130,7 @@ if ($_POST["action"] == 'add' && ($user->rights->produit->creer || $user->rights
if (!empty($_POST["canvas"])) if (!empty($_POST["canvas"]))
{ {
$canvas = new Canvas($db,$user); $canvas = new Canvas($db,$user);
$product = $canvas->load_canvas('product',$_GET["canvas"]); $product = $canvas->load_canvas('product',$_POST["canvas"]);
} }
else else
{ {
...@@ -223,7 +223,7 @@ if ($_POST["action"] == 'update' && ($user->rights->produit->creer || $user->rig ...@@ -223,7 +223,7 @@ if ($_POST["action"] == 'update' && ($user->rights->produit->creer || $user->rig
if (!empty($_POST["canvas"])) if (!empty($_POST["canvas"]))
{ {
$canvas = new Canvas($db,$user); $canvas = new Canvas($db,$user);
$product = $canvas->load_canvas('product',$_GET["canvas"]); $product = $canvas->load_canvas('product',$_POST["canvas"]);
} }
if ($product->fetch($_POST["id"])) if ($product->fetch($_POST["id"]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment