Fix: Warning when deleting order line
This commit is contained in:
parent
c1f38a1434
commit
d6a25f78cf
@ -1186,6 +1186,8 @@ class Commande extends CommonObject
|
|||||||
*/
|
*/
|
||||||
function delete_line($idligne)
|
function delete_line($idligne)
|
||||||
{
|
{
|
||||||
|
global $user;
|
||||||
|
|
||||||
if ($this->statut == 0)
|
if ($this->statut == 0)
|
||||||
{
|
{
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
@ -1210,7 +1212,7 @@ class Commande extends CommonObject
|
|||||||
$ligne = new CommandeLigne($this->db);
|
$ligne = new CommandeLigne($this->db);
|
||||||
$ligne->id = $idligne;
|
$ligne->id = $idligne;
|
||||||
$ligne->fk_commande = $this->id; // On en a besoin dans les triggers
|
$ligne->fk_commande = $this->id; // On en a besoin dans les triggers
|
||||||
$result=$ligne->delete();
|
$result=$ligne->delete($user);
|
||||||
|
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user