Synchro
This commit is contained in:
parent
c9e124ebff
commit
6c53a55d73
@ -56,14 +56,12 @@ class ProductLivreCouverture extends Product
|
|||||||
* \brief Creation
|
* \brief Creation
|
||||||
* \param id Id livre
|
* \param id Id livre
|
||||||
*/
|
*/
|
||||||
function CreateCanvas($user,$datas)
|
function Create($user,$datas)
|
||||||
{
|
{
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
$id = parent::Create($user);
|
||||||
$id = $this->create($user);
|
|
||||||
|
|
||||||
return $this->id;
|
return $this->id;
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* \brief Supression
|
* \brief Supression
|
||||||
@ -81,11 +79,6 @@ class ProductLivreCouverture extends Product
|
|||||||
function FetchCanvas($id='', $ref='')
|
function FetchCanvas($id='', $ref='')
|
||||||
{
|
{
|
||||||
$result = $this->fetch($id,$ref);
|
$result = $this->fetch($id,$ref);
|
||||||
|
|
||||||
// On charge le livre pour avoir le titre
|
|
||||||
// ne pas utiliser FetchCanvas qui cree une boucle infinie
|
|
||||||
$this->livre = new ProductLivre($this->db);
|
|
||||||
//$this->livre->Fetch($result["fk_cnv_livre"]);
|
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user