From 970b97a1792729bc4a565cf0504c0d288ae89349 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 15 Aug 2012 13:57:33 -0700 Subject: [PATCH] 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 --- FS/FS/ClientAPI/MyAccount.pm | 1 + FS/FS/Mason.pm | 3 ++- rt/share/html/Search/Results.xls | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) 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 ); -- 2.20.1