[Rt-commit] r7118 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Fri Mar 2 14:35:17 EST 2007
Author: ruz
Date: Fri Mar 2 14:35:17 2007
New Revision: 7118
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/CustomFieldValues/External.pm
Log:
r4639 at cubic-pc: cubic | 2007-03-02 05:20:06 +0300
* return undef instead of empty list when there is no callback to avoid
odd number of elements during hash contructions
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/CustomFieldValues/External.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/CustomFieldValues/External.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/CustomFieldValues/External.pm Fri Mar 2 14:35:17 2007
@@ -69,7 +69,7 @@
sub __BuildLimitCheck {
my ($self, %args) = (@_);
- return unless $args{'FIELD'} =~ /^(?:Name|Description)$/;
+ return undef unless $args{'FIELD'} =~ /^(?:Name|Description)$/;
$args{'OPERATOR'} ||= '=';
my $quoted_value = $args{'VALUE'};
More information about the Rt-commit
mailing list