Fix unable to delete order line
Calling trigger without having globalized $conf causes error and cancels delete operation, this commit adds the missing 2014-08-23 16:52:05 ERR 127.0.0.1 Interfaces::run_triggers was called with wrong parameters action=LINEORDER_SUPPLIER_DELETE object=1 user= langs= conf=
This commit is contained in:
parent
a353f816e3
commit
a97241f716
@ -1379,6 +1379,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
*/
|
*/
|
||||||
function deleteline($idline, $notrigger=0)
|
function deleteline($idline, $notrigger=0)
|
||||||
{
|
{
|
||||||
|
global $user,$langs,$conf;
|
||||||
if ($this->statut == 0)
|
if ($this->statut == 0)
|
||||||
{
|
{
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user