summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-08-15 13:57:33 -0700
committerIvan Kohler <ivan@freeside.biz>2012-08-15 13:57:33 -0700
commit970b97a1792729bc4a565cf0504c0d288ae89349 (patch)
tree8c7b3d90642a7dca1834e1e4ac6e9ca68670b7c6
parentbe39d08797f291b720c7ca044f2be7a1a08eb466 (diff)
add an explicit compile-time dependancy on OLE::Storage_Lite, for large spreadsheets, rather than popping up an error when you try to generate/download one, RT#18932
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm1
-rw-r--r--FS/FS/Mason.pm3
-rw-r--r--rt/share/html/Search/Results.xls1
3 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index 334614b95..9d9ab14ce 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -14,6 +14,7 @@ use Business::CreditCard;
use HTML::Entities;
use Text::CSV_XS;
use Spreadsheet::WriteExcel;
+use OLE::Storage_Lite;
use FS::UI::Web::small_custview qw(small_custview); #less doh
use FS::UI::Web;
use FS::UI::bytecount qw( display_bytecount );
diff --git a/FS/FS/Mason.pm b/FS/FS/Mason.pm
index 7d81fb64a..78a4b47cc 100644
--- a/FS/FS/Mason.pm
+++ b/FS/FS/Mason.pm
@@ -91,6 +91,7 @@ if ( -e $addl_handler_use_file ) {
use Text::CSV_XS;
use Spreadsheet::WriteExcel;
use Spreadsheet::WriteExcel::Utility;
+ use OLE::Storage_Lite;
use Excel::Writer::XLSX;
use Excel::Writer::XLSX::Utility;
@@ -350,7 +351,7 @@ if ( -e $addl_handler_use_file ) {
use RT::Interface::Web::Request;
- #nother undeclared web UI dep (for ticket links graph)
+ #another undeclared web UI dep (for ticket links graph)
use IPC::Run::SafeHandles;
#slow, unreliable, segfaults and is optional
diff --git a/rt/share/html/Search/Results.xls b/rt/share/html/Search/Results.xls
index 52a05daed..8b94e22ba 100644
--- a/rt/share/html/Search/Results.xls
+++ b/rt/share/html/Search/Results.xls
@@ -54,6 +54,7 @@ $Format => undef
<%INIT>
use Spreadsheet::WriteExcel;
+use OLE::Storage_Lite;
use List::Util qw( max );
use Date::Format qw( time2str );