Bug 35451: (follow-up) Fix C4::Acquisition::TransferOrder

This patch adds table name to the additional fields clone found insdie
TransferOrder.

Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2025-05-13 20:08:37 +01:00 committed by Lucas Gass
parent 65b3aee93f
commit 0c7e44022e
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 4 additions and 3 deletions

View File

@ -1974,9 +1974,10 @@ sub TransferOrder {
foreach my $afv ( $order->additional_field_values->as_list ) {
Koha::AdditionalFieldValue->new(
{
field_id => $afv->field_id,
record_id => $newordernumber,
value => $afv->value,
field_id => $afv->field_id,
record_id => $newordernumber,
record_table => 'aqorders',
value => $afv->value,
}
)->store;
}