[Rt-commit] r19880 - in rtir/2.5/trunk: t/lib/RT/IR

ruz at bestpractical.com ruz at bestpractical.com
Wed Jun 3 17:16:52 EDT 2009


Author: ruz
Date: Wed Jun  3 17:16:52 2009
New Revision: 19880

Modified:
   rtir/2.5/trunk/   (props changed)
   rtir/2.5/trunk/t/lib/RT/IR/Test.pm

Log:
* sync 2.4->2.5
 r19894 at Macintosh (orig r19879):  ruz | 2009-06-04 01:16:26 +0300
 * return RTFM's path provided by chimps only when we found it


Modified: rtir/2.5/trunk/t/lib/RT/IR/Test.pm
==============================================================================
--- rtir/2.5/trunk/t/lib/RT/IR/Test.pm	(original)
+++ rtir/2.5/trunk/t/lib/RT/IR/Test.pm	Wed Jun  3 17:16:52 2009
@@ -67,7 +67,7 @@
             return $cwd if $_[0]->{name} eq 'RT::IR';
             if ( $_[0]->{name} eq 'RT::FM' ) {
                 my ($path) = map $ENV{$_}, grep /^CHIMPS_RTFM.*_ROOT$/, keys %ENV;
-                return $path;
+                return $path if $path;
             }
             return $old_func->(@_);
         };


More information about the Rt-commit mailing list