Skip to content

Commit

Permalink
Update propal.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed Jun 25, 2019
1 parent 66eec4d commit df0d540
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion htdocs/comm/propal/class/propal.class.php
Expand Up @@ -1618,8 +1618,9 @@ public function update(User $user, $notrigger = 0)
* @param int $only_product Return only physical products
* @return int <0 if KO, >0 if OK
*/
public function fetch_lines($only_product = 0)
public function fetch_lines($only_product = 0, $loadalsotranslation = 0)
{
global $langs, $conf;
// phpcs:enable
$this->lines=array();

Expand Down Expand Up @@ -1712,6 +1713,13 @@ public function fetch_lines($only_product = 0)
$line->multicurrency_total_ttc = $objp->multicurrency_total_ttc;

$line->fetch_optionals();

// multilangs
if (! empty($conf->global->MAIN_MULTILANGS) && ! empty($objp->fk_product) && ! empty($loadalsotranslation)) {
$line = new Product($this->db);
$line->fetch($objp->fk_product);
$line->getMultiLangs();
}

$this->lines[$i] = $line;
//dol_syslog("1 ".$line->fk_product);
Expand Down

0 comments on commit df0d540

Please sign in to comment.