Fix another mistake in NCIP::ILS::Evergreen.
authorJason Stephenson <jason@sigio.com>
Mon, 8 Sep 2014 01:11:45 +0000 (21:11 -0400)
committerJason Stephenson <jason@sigio.com>
Mon, 8 Sep 2014 01:11:45 +0000 (21:11 -0400)
Forgot the {} around the arguments when creating a NCIP::Response
object in acceptitem.

Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/ILS/Evergreen.pm

index 70f98ea..aebe23d 100644 (file)
@@ -342,7 +342,7 @@ sub acceptitem {
 
     # Common preparation.
     my $message = $self->parse_request_type($request);
-    my $response = NCIP::Response->new(type => $message . 'Response');
+    my $response = NCIP::Response->new({type => $message . 'Response'});
     $response->header($self->make_header($request));
 
     # We only accept holds for the time being.