]> git.uio.no Git - usit-rt.git/blobdiff - lib/RT/Ticket.pm
Dev to 4.0.11
[usit-rt.git] / lib / RT / Ticket.pm
index 8bfe1267c28d5e53ba078a124b8b28f6b7e83129..cce5c56e5b5276bafbdc521847b2fee436debf26 100644 (file)
@@ -2581,9 +2581,7 @@ sub __GetTicketFromURI {
     # If the other URI is an RT::Ticket, we want to make sure the user
     # can modify it too...
     my $uri_obj = RT::URI->new( $self->CurrentUser );
-    $uri_obj->FromURI( $args{'URI'} );
-
-    unless ( $uri_obj->Resolver && $uri_obj->Scheme ) {
+    unless ($uri_obj->FromURI( $args{'URI'} )) {
         my $msg = $self->loc( "Couldn't resolve '[_1]' into a URI.", $args{'URI'} );
         $RT::Logger->warning( $msg );
         return( 0, $msg );