[Bps-public-commit] r16274 - sd/trunk/lib/App/SD/Replica

ruz at bestpractical.com ruz at bestpractical.com
Fri Oct 10 20:40:12 EDT 2008


Author: ruz
Date: Fri Oct 10 20:40:11 2008
New Revision: 16274

Modified:
   sd/trunk/lib/App/SD/Replica/hm.pm

Log:
* arguments of search action stacks together and don't work as hash

Modified: sd/trunk/lib/App/SD/Replica/hm.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/hm.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/hm.pm	Fri Oct 10 20:40:11 2008
@@ -96,15 +96,17 @@
 }
 
 sub find_matching_tasks {
-    my $self  = shift;
-    my $tasks = $self->hm->act(
-        'TaskSearch',
+    my $self = shift;
+    my %args = (
         owner        => 'me',
         group        => 0,
         requestor    => 'me',
         not_complete => 1,
-        %{ $self->props || {} },
-    )->{content}->{tasks};
+    );
+    if ( my $props = $self->props ) {
+        while ( my ($k, $v) = each %$props ) { $args{$k} = $v }
+    }
+    my $tasks = $self->hm->act( 'TaskSearch', %args )->{content}->{tasks};
     return $tasks;
 }
 



More information about the Bps-public-commit mailing list