Skip to content

Commit

Permalink
Merge pull request #8810 from simnandez/7.0
Browse files Browse the repository at this point in the history
Fix: extrafiels is not passing orders to invoice
  • Loading branch information
eldy committed May 18, 2018
2 parents 2428102 + 0aa8c6f commit 75f5cdb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion htdocs/core/actions_massactions.inc.php
@@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2015-2017 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2018 Juanjo Menent <jmenent@2byte.es>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -601,6 +602,13 @@
{
$fk_parent_line = 0;
}

// Extrafields
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && method_exists($lines[$i], 'fetch_optionals')) {
$lines[$i]->fetch_optionals($lines[$i]->rowid);
$array_options = $lines[$i]->array_options;
}

$result = $objecttmp->addline(
$desc,
$lines[$i]->subprice,
Expand All @@ -625,7 +633,8 @@
$fk_parent_line,
$lines[$i]->fk_fournprice,
$lines[$i]->pa_ht,
$lines[$i]->label
$lines[$i]->label,
$array_options
);
if ($result > 0)
{
Expand Down

0 comments on commit 75f5cdb

Please sign in to comment.