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:
parent
9f8f33e351
commit
c7a6745bc0
15
C4/Items.pm
15
C4/Items.pm
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue