Qual: Uniformise code
This commit is contained in:
parent
89b1a0f2d2
commit
9bfa90e693
@ -39,7 +39,7 @@ class ProductDefault extends Product
|
||||
* \param DB Handler acces base de donnees
|
||||
* \param id Id produit (0 par defaut)
|
||||
*/
|
||||
function ProductDefault($DB, $id=0, $user=0)
|
||||
function ProductDefault($DB=0, $id=0, $user=0)
|
||||
{
|
||||
$this->db = $DB;
|
||||
$this->id = $id ;
|
||||
|
||||
@ -673,6 +673,7 @@ if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->righ
|
||||
*/
|
||||
if ($_GET["id"] || $_GET["ref"])
|
||||
{
|
||||
// TODO en attendant d'inclure le nom du canvas dans les liens
|
||||
$productstatic = new Product($db);
|
||||
$result = $productstatic->getCanvas($_GET["id"],$_GET["ref"]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user