From 8b6a1c34703278e2ff7a5767769a9193fa551be2 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 5 May 2010 09:54:54 +0000 Subject: [PATCH] Works on product canvas and templates --- htdocs/core/class/canvas.class.php | 9 +++++++++ htdocs/product/fiche.php | 1 + 2 files changed, 10 insertions(+) diff --git a/htdocs/core/class/canvas.class.php b/htdocs/core/class/canvas.class.php index 96ab43fc223..6f7a4818188 100644 --- a/htdocs/core/class/canvas.class.php +++ b/htdocs/core/class/canvas.class.php @@ -82,6 +82,15 @@ class Canvas return 0; } } + + /** + * \brief Assign values + */ + function fetch($id,$action='') + { + $ret = $this->object->fetch($id,$action); + return $ret; + } /** * \brief Assign values diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 0f185c77093..c878379db78 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -666,6 +666,7 @@ if ($_GET["id"] || $_GET["ref"]) $canvas = new Canvas($db,$user); $product = $canvas->load_canvas('product',$productstatic->canvas); + $canvas->fetch($productstatic->id,$_GET["action"]); } llxHeader('',$langs->trans("CardProduct".$product->type));