Bug 28139: Handle Processing status with HoldsAutoFill pref turned on
To test: 1: Turn on HoldsAutoFill setting 2: Place a item-level hold on item X at Branch A 3: Make the hold to Processing state: $ koha-mysql kohadev > select * from reserves; # look up the reserve_id > UPDATE reserves SET found = 'P', priority = 0 WHERE reserve_id = XXX; 4: Check in the item X at Branch A - A pop-up asking confirmation comes 5: Apply patch & restart plack 6: Check in the item X again at Branch A - now the hold is confirmed automatically Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ddad57a468
commit
49da7cd462
|
|
@ -417,7 +417,7 @@ if ( $messages->{'ResFound'}) {
|
|||
my $patron = Koha::Patrons->find( $reserve->{borrowernumber} );
|
||||
my $holdmsgpreferences = C4::Members::Messaging::GetMessagingPreferences( { borrowernumber => $reserve->{'borrowernumber'}, message_name => 'Hold_Filled' } );
|
||||
my $branchCheck = ( $userenv_branch eq $reserve->{branchcode} );
|
||||
if ( ( $reserve->{'ResFound'} eq "Reserved" || $reserve->{'ResFound'} eq "Transferred" ) && C4::Context->preference('HoldsAutoFill') ) {
|
||||
if ( ( $reserve->{'ResFound'} eq "Reserved" || $reserve->{'ResFound'} eq "Processing" || $reserve->{'ResFound'} eq "Transferred" ) && C4::Context->preference('HoldsAutoFill') ) {
|
||||
my $item = Koha::Items->find( $itemnumber );
|
||||
my $biblio = $item->biblio;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue