Bugzilla – Attachment 180807 Details for
Bug 35451
Add tablename field to additional_field_values
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35451: Record table in set_additional_fields
Bug-35451-Record-table-in-setadditionalfields.patch (text/plain), 1.40 KB, created by
Marcel de Rooy
on 2025-04-11 06:56:43 UTC
(
hide
)
Description:
Bug 35451: Record table in set_additional_fields
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-04-11 06:56:43 UTC
Size:
1.40 KB
patch
obsolete
>From 0f817cf5d2647598c319779aabc0db4f91fb7602 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 30 Nov 2023 11:47:53 +0000 >Subject: [PATCH] Bug 35451: Record table in set_additional_fields >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: David Nind <david@davidnind.com> >--- > Koha/Object/Mixin/AdditionalFields.pm | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > >diff --git a/Koha/Object/Mixin/AdditionalFields.pm b/Koha/Object/Mixin/AdditionalFields.pm >index 39334fd684..d18c74a727 100644 >--- a/Koha/Object/Mixin/AdditionalFields.pm >+++ b/Koha/Object/Mixin/AdditionalFields.pm >@@ -47,6 +47,8 @@ sub set_additional_fields { > > $self->additional_field_values->delete; > >+ my $table = $self->_result->table; >+ > my $biblionumber; > my $record; > my $record_updated; >@@ -80,9 +82,10 @@ sub set_additional_fields { > if ( defined $value && $value ne '' ) { > my $field_value = Koha::AdditionalFieldValue->new( > { >- field_id => $additional_field->{id}, >- record_id => $self->id, >- value => $value, >+ field_id => $additional_field->{id}, >+ record_table => $table, >+ record_id => $self->id, >+ value => $value, > } > )->store; > } >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35451
:
159390
|
159391
|
159392
|
159393
|
159394
|
159747
|
159748
|
159749
|
159750
|
159751
|
173147
|
173148
|
173149
|
173150
|
173151
|
173421
|
173422
|
173423
|
173424
|
173425
|
178332
|
178333
|
178334
|
178335
|
178336
|
178337
|
178338
|
178339
|
178340
|
178341
|
180806
| 180807 |
180808
|
180809
|
180810