Bug 8723: Update hold_fill_targets, tmp_holdsqueue and linktracker tables

Same as previous patch for 3 other tables.

Test plan:
Same as before but the hold should exist to the 3 tables before the
move.

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
Jonathan Druart 2015-07-10 15:18:48 +01:00 committed by Tomas Cohen Arazi
parent 9f8f33e351
commit c7a6745bc0
1 changed files with 8 additions and 7 deletions

View File

@ -2278,13 +2278,14 @@ sub MoveItemFromBiblio {
C4::Acquisition::ModOrder($order);
}
# Update holds
$dbh->do( q|
UPDATE reserves
SET biblionumber = ?
WHERE itemnumber = ?
|, undef, $tobiblio, $itemnumber );
# Update reserves, hold_fill_targets, tmp_holdsqueue and linktracker tables
for my $table_name ( qw( reserves hold_fill_targets tmp_holdsqueue linktracker ) ) {
$dbh->do( qq|
UPDATE $table_name
SET biblionumber = ?
WHERE itemnumber = ?
|, undef, $tobiblio, $itemnumber );
}
return $tobiblio;
}
return;