Works on product canvas and templates
Add possibility to move canvas directory to module directory
This commit is contained in:
parent
8b6a1c3470
commit
ef5bd8c1df
@ -86,9 +86,9 @@ class Canvas
|
|||||||
/**
|
/**
|
||||||
* \brief Assign values
|
* \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;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -65,7 +65,7 @@ class ProductDefault extends Product
|
|||||||
* \brief Lecture des donnees dans la base
|
* \brief Lecture des donnees dans la base
|
||||||
* \param id Product id
|
* \param id Product id
|
||||||
*/
|
*/
|
||||||
function fetch($id='', $action='')
|
function fetch($id='', $ref='', $action='')
|
||||||
{
|
{
|
||||||
$result = parent::fetch($id);
|
$result = parent::fetch($id);
|
||||||
|
|
||||||
|
|||||||
@ -63,7 +63,7 @@ class ProductService extends Product
|
|||||||
* \brief Lecture des donnees dans la base
|
* \brief Lecture des donnees dans la base
|
||||||
* \param id Product id
|
* \param id Product id
|
||||||
*/
|
*/
|
||||||
function fetch($id='', $action='')
|
function fetch($id='', $ref='', $action='')
|
||||||
{
|
{
|
||||||
$result = parent::fetch($id);
|
$result = parent::fetch($id);
|
||||||
|
|
||||||
|
|||||||
@ -666,7 +666,7 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
$canvas = new Canvas($db,$user);
|
$canvas = new Canvas($db,$user);
|
||||||
|
|
||||||
$product = $canvas->load_canvas('product',$productstatic->canvas);
|
$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));
|
llxHeader('',$langs->trans("CardProduct".$product->type));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user