typo
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 3 Sep 2006 21:07:57 +0000 (21:07 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 3 Sep 2006 21:07:57 +0000 (21:07 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5897 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm

index 85fbe11..3607afc 100644 (file)
@@ -326,7 +326,11 @@ sub hold_pull_list {
        my $sth = action::survey->db_Main->prepare_cached($select);
        $sth->execute($ou);
 
-       $client->respond( $id_list ? $_->id : $_->to_fieldmapper ) for ( map { action::hold_request->construct($_) } $sth->fetchall_hash );
+       if ($idlist) {
+               $client->respond( $_->{id} ) for ( $sth->fetchall_hash );
+       } else {
+               $client->respond( $_->to_fieldmapper ) for ( map { action::hold_request->construct($_) } $sth->fetchall_hash );
+       }
 
        return undef;
 }