Merge pull request #2461 from tiaris/3.7_langs_error
Add global $langs to method, necessary for triggers to function
This commit is contained in:
commit
9e0aa22a04
@ -154,7 +154,7 @@ class ProductFournisseur extends Product
|
|||||||
*/
|
*/
|
||||||
function update_buyprice($qty, $buyprice, $user, $price_base_type, $fourn, $availability, $ref_fourn, $tva_tx, $charges=0, $remise_percent=0, $remise=0, $newnpr=0)
|
function update_buyprice($qty, $buyprice, $user, $price_base_type, $fourn, $availability, $ref_fourn, $tva_tx, $charges=0, $remise_percent=0, $remise=0, $newnpr=0)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf, $langs;
|
||||||
|
|
||||||
// Clean parameter
|
// Clean parameter
|
||||||
if (empty($qty)) $qty=0;
|
if (empty($qty)) $qty=0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user