From 3c68ac55b979f0f576027cb2ebf9d5f57dc66941 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@destailleur.fr>
Date: Tue, 19 Jan 2016 12:06:11 +0100
Subject: [PATCH] Fix missing loading lang

---
 htdocs/core/boxes/box_graph_invoices_permonth.php          | 2 ++
 htdocs/core/boxes/box_graph_invoices_supplier_permonth.php | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/htdocs/core/boxes/box_graph_invoices_permonth.php b/htdocs/core/boxes/box_graph_invoices_permonth.php
index 7b797b98ab0..3848960e5e9 100644
--- a/htdocs/core/boxes/box_graph_invoices_permonth.php
+++ b/htdocs/core/boxes/box_graph_invoices_permonth.php
@@ -170,6 +170,8 @@ class box_graph_invoices_permonth extends ModeleBoxes
 				$mesg = $px2->isGraphKo();
 				if (! $mesg)
 				{
+				    $langs->load("bills");
+				    
 					$px2->SetData($data2);
 					unset($data2);
 					$px2->SetPrecisionY(0);
diff --git a/htdocs/core/boxes/box_graph_invoices_supplier_permonth.php b/htdocs/core/boxes/box_graph_invoices_supplier_permonth.php
index 31d9f811257..0931d2d05df 100644
--- a/htdocs/core/boxes/box_graph_invoices_supplier_permonth.php
+++ b/htdocs/core/boxes/box_graph_invoices_supplier_permonth.php
@@ -169,6 +169,8 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
 				$mesg = $px2->isGraphKo();
 				if (! $mesg)
 				{
+				    $langs->load("bills");
+				    
 					$px2->SetData($data2);
 					unset($data2);
 					$px2->SetPrecisionY(0);
-- 
GitLab