[Rt-commit] r6228 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Thu Oct 19 11:27:40 EDT 2006
Author: ruz
Date: Thu Oct 19 11:27:38 2006
New Revision: 6228
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/CustomField_Overlay.pm
Log:
r3968 at cubic-pc: cubic | 2006-10-19 14:58:51 +0400
* move variable into inner scope where it's needed
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/CustomField_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/CustomField_Overlay.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/CustomField_Overlay.pm Thu Oct 19 11:27:38 2006
@@ -940,9 +940,8 @@
$RT::Handle->BeginTransaction;
- my $current_values = $self->ValuesForObject($obj);
-
if ( $self->MaxValues ) {
+ my $current_values = $self->ValuesForObject($obj);
my $extra_values = ( $current_values->Count + 1 ) - $self->MaxValues;
# (The +1 is for the new value we're adding)
More information about the Rt-commit
mailing list