FIX Missing param user on update()
This commit is contained in:
parent
9e24abacac
commit
6ffb45f5d8
@ -589,7 +589,7 @@ class Account extends CommonObject
|
|||||||
{
|
{
|
||||||
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."bank_account");
|
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."bank_account");
|
||||||
|
|
||||||
$result=$this->update();
|
$result=$this->update($user);
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
$accline = new AccountLine($this->db);
|
$accline = new AccountLine($this->db);
|
||||||
|
|||||||
@ -2606,7 +2606,7 @@ class Facture extends CommonInvoice
|
|||||||
$this->line->array_options=$array_options;
|
$this->line->array_options=$array_options;
|
||||||
}
|
}
|
||||||
|
|
||||||
$result=$this->line->update();
|
$result=$this->line->update($user);
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
// Reorder if child line
|
// Reorder if child line
|
||||||
@ -2680,7 +2680,7 @@ class Facture extends CommonInvoice
|
|||||||
$line->total_ttc = $tabprice[2];
|
$line->total_ttc = $tabprice[2];
|
||||||
$line->total_localtax1 = $tabprice[9];
|
$line->total_localtax1 = $tabprice[9];
|
||||||
$line->total_localtax2 = $tabprice[10];
|
$line->total_localtax2 = $tabprice[10];
|
||||||
$line->update();
|
$line->update($user);
|
||||||
$this->update_price(1);
|
$this->update_price(1);
|
||||||
$this->db->commit();
|
$this->db->commit();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -249,7 +249,7 @@ if (empty($reshook))
|
|||||||
{
|
{
|
||||||
$object->ref_supplier = GETPOST('ref_supplier', 'alpha');
|
$object->ref_supplier = GETPOST('ref_supplier', 'alpha');
|
||||||
|
|
||||||
if ($object->update() < 0) {
|
if ($object->update($user) < 0) {
|
||||||
setEventMessages($object->error, $object->errors, 'errors');
|
setEventMessages($object->error, $object->errors, 'errors');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -136,7 +136,7 @@ else if ($action == 'update')
|
|||||||
$object->country_id = $_POST["country_id"];
|
$object->country_id = $_POST["country_id"];
|
||||||
$object->fk_user_mod = $user->id;
|
$object->fk_user_mod = $user->id;
|
||||||
|
|
||||||
$result = $object->update();
|
$result = $object->update($user);
|
||||||
|
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user