[Rt-commit] [svn] r1026 - rt/trunk/lib/RT
alexmv at pallas.eruditorum.org
alexmv at pallas.eruditorum.org
Mon Jun 7 16:53:01 EDT 2004
Author: alexmv
Date: Mon Jun 7 16:53:00 2004
New Revision: 1026
Modified:
rt/trunk/lib/RT/Link_Overlay.pm
Log:
RT-Ticket: 5567
RT-Action: correspond
RT-Status: resolved
* Don't assume that the base of a link has a resolver -- for the case
where a bogus "Referred to" field is entered. It will now give the
slightly less obscure error message "Link could not be created"
at the top of the page rather than a raw error message.
Modified: rt/trunk/lib/RT/Link_Overlay.pm
==============================================================================
--- rt/trunk/lib/RT/Link_Overlay.pm (original)
+++ rt/trunk/lib/RT/Link_Overlay.pm Mon Jun 7 16:53:00 2004
@@ -81,10 +81,9 @@
my $base = RT::URI->new( $self->CurrentUser );
$base->FromURI( $args{'Base'} );
- unless ( $base->Scheme ) {
+ unless ( $base->Resolver and $base->Scheme ) {
$RT::Logger->warning( "$self couldn't resolve base:'"
. $args{'Base'} . " - "
- . $base->Scheme
. "' into a URI\n" );
#use Data::Dumper;
More information about the Rt-commit
mailing list