Works on product canvas and templates
This commit is contained in:
parent
5916b3835b
commit
8b6a1c3470
@ -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
|
||||
|
||||
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user