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:
Laurent Destailleur 2015-03-20 20:43:16 +01:00
commit 9e0aa22a04

View File

@ -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)
{
global $conf;
global $conf, $langs;
// Clean parameter
if (empty($qty)) $qty=0;