Update propal.class.php
This commit is contained in:
parent
66eec4da52
commit
df0d540ffb
@ -1618,8 +1618,9 @@ class Propal extends CommonObject
|
|||||||
* @param int $only_product Return only physical products
|
* @param int $only_product Return only physical products
|
||||||
* @return int <0 if KO, >0 if OK
|
* @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
|
// phpcs:enable
|
||||||
$this->lines=array();
|
$this->lines=array();
|
||||||
|
|
||||||
@ -1712,6 +1713,13 @@ class Propal extends CommonObject
|
|||||||
$line->multicurrency_total_ttc = $objp->multicurrency_total_ttc;
|
$line->multicurrency_total_ttc = $objp->multicurrency_total_ttc;
|
||||||
|
|
||||||
$line->fetch_optionals();
|
$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;
|
$this->lines[$i] = $line;
|
||||||
//dol_syslog("1 ".$line->fk_product);
|
//dol_syslog("1 ".$line->fk_product);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user