Bug 24705: Holds placed via SIP will be given first priority
[koha.git] / C4 / SIP / ILS / Transaction / Hold.pm
index ecf8416..d51ebde 100644 (file)
@@ -66,8 +66,10 @@ sub do_hold {
         return $self;
     }
 
+    my $priority = C4::Reserves::CalculatePriority($item->biblionumber);
     AddReserve(
         {
+            priority       => $priority,
             branch         => $branch,
             borrowernumber => $patron->borrowernumber,
             biblionumber   => $item->biblionumber