fix 'Can't call method "setup" on an undefined value' error when using into rates...
[freeside.git] / rt / lib / RT / Groups_Overlay.pm
index ed18939..fa39e8c 100644 (file)
@@ -323,6 +323,7 @@ sub WithRight {
     $from_group->WithGroupRight( %args );
 
     #XXX: DIRTY HACK
+    use DBIx::SearchBuilder 1.50; #no version on ::Union :(
     use DBIx::SearchBuilder::Union;
     my $union = new DBIx::SearchBuilder::Union;
     $union->add($from_role);