summaryrefslogtreecommitdiff
path: root/rt/lib/RT/URI.pm
diff options
context:
space:
mode:
Diffstat (limited to 'rt/lib/RT/URI.pm')
-rw-r--r--rt/lib/RT/URI.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/rt/lib/RT/URI.pm b/rt/lib/RT/URI.pm
index 7acc1dc..337a356 100644
--- a/rt/lib/RT/URI.pm
+++ b/rt/lib/RT/URI.pm
@@ -91,8 +91,10 @@ sub FromObject {
=head2 FromURI <URI>
-Returns a local object id for this content. You are expected to know what sort of object this is the Id
-of
+Returns a local object id for this content. You are expected to know
+what sort of object this is the Id of
+
+Returns true if everything is ok, otherwise false
=cut
@@ -119,9 +121,12 @@ sub FromURI {
unless ($self->Resolver->ParseURI($uri)) {
$RT::Logger->warning("Resolver ".ref($self->Resolver)." could not parse $uri");
+ $self->{resolver} = undef; # clear resolver
return (undef);
}
+return(1);
+
}
# }}}