diff --git a/htdocs/includes/boxes/box_factures.php b/htdocs/includes/boxes/box_factures.php index 02d2e25d5f0..f816a5f7ab1 100644 --- a/htdocs/includes/boxes/box_factures.php +++ b/htdocs/includes/boxes/box_factures.php @@ -63,7 +63,10 @@ class box_factures extends ModeleBoxes { $facturestatic=new Facture($db); - $this->info_box_head = array('text' => $langs->trans("BoxTitleLastCustomerBills",$max)); + $this->info_box_head = array( + 'text' => $langs->trans("BoxTitleLastCustomerBills",$max), + 'limit'=> strlen($text) + ); if ($user->rights->facture->lire) { diff --git a/htdocs/includes/boxes/box_factures_fourn.php b/htdocs/includes/boxes/box_factures_fourn.php index 79622d867b0..1ee4b85b088 100644 --- a/htdocs/includes/boxes/box_factures_fourn.php +++ b/htdocs/includes/boxes/box_factures_fourn.php @@ -65,7 +65,10 @@ class box_factures_fourn extends ModeleBoxes { include_once(DOL_DOCUMENT_ROOT."/fourn/fournisseur.facture.class.php"); $facturestatic=new FactureFournisseur($db); - $this->info_box_head = array('text' => $langs->trans("BoxTitleLastSupplierBills",$max)); + $this->info_box_head = array( + 'text' => $langs->trans("BoxTitleLastSupplierBills",$max), + 'limit'=> strlen($text) + ); if ($user->rights->fournisseur->facture->lire) {