Bugzilla – Attachment 178333 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.31 KB, created by
Martin Renvoize (ashimema)
on 2025-02-19 14:26:53 UTC
(
hide
)
Description:
Bug 35451: Record table in set_additional_fields
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-02-19 14:26:53 UTC
Size:
1.31 KB
patch
obsolete
>From 0239860f55254b322ffac02bc7a40b6252a12aa5 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 > >--- > 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 39334fd6841..d18c74a7277 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.48.1
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
|
182401
|
182402
|
182403
|
182404
|
182405
|
182406
|
182407
|
182408
|
182409
|
182410
|
182411
|
182412
|
182413