[Rt-commit] [svn] r1715 - in rt/branches/3.3-TESTING: . lib/RT
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Thu Nov 4 23:02:27 EST 2004
Author: jesse
Date: Thu Nov 4 23:02:27 2004
New Revision: 1715
Modified:
rt/branches/3.3-TESTING/ (props changed)
rt/branches/3.3-TESTING/lib/RT/Ticket_Overlay.pm
Log:
r6174 at tinbook: jesse | 2004-11-05T02:17:10.144816Z
When uploading image custom fields, they're handled as file descriptors, rather than scalars. Our old logic assumed that any ref was an array. Now we check for array refs explicitly.
Modified: rt/branches/3.3-TESTING/lib/RT/Ticket_Overlay.pm
==============================================================================
--- rt/branches/3.3-TESTING/lib/RT/Ticket_Overlay.pm (original)
+++ rt/branches/3.3-TESTING/lib/RT/Ticket_Overlay.pm Thu Nov 4 23:02:27 2004
@@ -689,7 +689,7 @@
next unless ( $arg =~ /^CustomField-(\d+)$/i );
my $cfid = $1;
foreach
- my $value ( ref( $args{$arg} ) ? @{ $args{$arg} } : ( $args{$arg} ) )
+ my $value ( UNIVERSAL::isa( $args{$arg} => 'ARRAY' ) ? @{ $args{$arg} } : ( $args{$arg} ) )
{
next unless ( length($value) );
$self->_AddCustomFieldValue(
More information about the Rt-commit
mailing list