Lines 1731-1736
sub _FixPriority {
Link Here
|
1731 |
$j + 1, |
1731 |
$j + 1, |
1732 |
$priority[$j]->{'reserve_id'} |
1732 |
$priority[$j]->{'reserve_id'} |
1733 |
); |
1733 |
); |
|
|
1734 |
if ( $j == 0 ) { |
1735 |
my $res = GetReserve( $priority[$j]->{'reserve_id'} ); |
1736 |
if ( $res->{itemnumber} ) { |
1737 |
ModReserveAffect({ itemnumber => $res->{itemnumber}, borrowernumber => $res->{borrowernumber} }); |
1738 |
} |
1739 |
} |
1734 |
} |
1740 |
} |
1735 |
|
1741 |
|
1736 |
$sth = $dbh->prepare( "SELECT reserve_id FROM reserves WHERE lowestPriority = 1 ORDER BY priority" ); |
1742 |
$sth = $dbh->prepare( "SELECT reserve_id FROM reserves WHERE lowestPriority = 1 ORDER BY priority" ); |
1737 |
- |
|
|