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

Works on product canvas and templates

Add possibility to move canvas directory to module directory
parent 8b6a1c34
No related branches found
No related tags found
No related merge requests found
......@@ -86,9 +86,9 @@ class Canvas
/**
* \brief Assign values
*/
function fetch($id,$action='')
function fetch($id,$ref='',$action='')
{
$ret = $this->object->fetch($id,$action);
$ret = $this->object->fetch($id,$ref,$action);
return $ret;
}
......
......@@ -65,7 +65,7 @@ class ProductDefault extends Product
* \brief Lecture des donnees dans la base
* \param id Product id
*/
function fetch($id='', $action='')
function fetch($id='', $ref='', $action='')
{
$result = parent::fetch($id);
......
......@@ -63,7 +63,7 @@ class ProductService extends Product
* \brief Lecture des donnees dans la base
* \param id Product id
*/
function fetch($id='', $action='')
function fetch($id='', $ref='', $action='')
{
$result = parent::fetch($id);
......
......@@ -666,7 +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"]);
$canvas->fetch($productstatic->id,'',$_GET["action"]);
}
llxHeader('',$langs->trans("CardProduct".$product->type));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment