[Rt-commit] r19353 - in rt/3.8/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Mon Apr 27 13:45:55 EDT 2009
Author: sartak
Date: Mon Apr 27 13:45:45 2009
New Revision: 19353
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/lib/RT/ObjectCustomFieldValue_Overlay.pm
Log:
r82555 at onn: sartak | 2009-04-27 13:45:04 -0400
Avoid undef warnings in filling in CustomField URLs
Modified: rt/3.8/trunk/lib/RT/ObjectCustomFieldValue_Overlay.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/ObjectCustomFieldValue_Overlay.pm (original)
+++ rt/3.8/trunk/lib/RT/ObjectCustomFieldValue_Overlay.pm Mon Apr 27 13:45:45 2009
@@ -219,8 +219,11 @@
my $url = shift;
+ my $content = @{[$self->Content]};
+ $content = '' if !defined($content);
+
$url =~ s/__id__/@{[$self->ObjectId]}/g;
- $url =~ s/__CustomField__/@{[$self->Content]}/g;
+ $url =~ s/__CustomField__/$content/g;
return $url;
}
More information about the Rt-commit
mailing list