[Rt-commit] [rtir] 02/02: Nasty heuristic to warn about $RTIRSearchResultFormats
Kevin Falcone
falcone at bestpractical.com
Fri Jul 25 22:56:03 EDT 2014
This is an automated email from the git hooks/post-receive script.
falcone pushed a commit to branch 3.2/hashify-rtirsearchresultsformats
in repository rtir.
commit 7edd87205a32744aa695689fa309e89b243a1edd
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Fri Jul 25 22:27:40 2014 -0400
Nasty heuristic to warn about $RTIRSearchResultFormats
It ends up as the odd key in the %RTIRSearchResultFormats with a key of
the stringification of $RTIRSearchResultFormats and a value of undef,
so, warn in that case to help folks fix:
Odd number of elements in anonymous hash at lib/RT/Config.pm line 1315.
Odd number of elements in hash assignment at lib/RT/Config.pm line 1316.
Closes issues #30278
---
lib/RT/IR/Config.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/RT/IR/Config.pm b/lib/RT/IR/Config.pm
index 03dae8b..326e6be 100644
--- a/lib/RT/IR/Config.pm
+++ b/lib/RT/IR/Config.pm
@@ -75,6 +75,9 @@ sub Init {
sub {
my ($self, %value) = @_;
foreach my $format ( keys %value ){
+ if ($format =~ /^HASH/ && !defined $value{$format}) {
+ RT->Logger->warning('You appear to have $RTIRSearchResultFormats in your configuration, this has been renamed to %RTIRSearchResultFormats see docs/UPGRADING-3.2');
+ }
CheckObsoleteCFSyntax($value{$format},
$RT::Config::META{RTIRSearchResultFormats}{Source}{File});
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list