Works on product canvas and templates

Add possibility to move canvas directory to module directory
This commit is contained in:
Regis Houssin 2010-05-05 10:13:07 +00:00
parent 8b6a1c3470
commit ef5bd8c1df
4 changed files with 5 additions and 5 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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);

View File

@ -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));