Skip to content

Commit

Permalink
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
eldy committed Jun 13, 2019
2 parents 4b26702 + 13cbe58 commit b90550f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions htdocs/expedition/class/expedition.class.php
Expand Up @@ -446,15 +446,17 @@ public function create($user, $notrigger = 0)
*/
public function create_line($entrepot_id, $origin_line_id, $qty, $array_options = 0)
{
//phpcs:enable
//phpcs:enable
global $user;

$expeditionline = new ExpeditionLigne($this->db);
$expeditionline->fk_expedition = $this->id;
$expeditionline->entrepot_id = $entrepot_id;
$expeditionline->fk_origin_line = $origin_line_id;
$expeditionline->qty = $qty;
$expeditionline->array_options = $array_options;

if (($lineId = $expeditionline->insert()) < 0)
if (($lineId = $expeditionline->insert($user)) < 0)
{
$this->errors[]=$expeditionline->error;
}
Expand Down Expand Up @@ -2552,7 +2554,7 @@ public function fetch($rowid)
* @param int $notrigger 1 = disable triggers
* @return int <0 if KO, line id >0 if OK
*/
public function insert($user = null, $notrigger = 0)
public function insert($user, $notrigger = 0)
{
global $langs, $conf;

Expand Down

0 comments on commit b90550f

Please sign in to comment.