Bugzilla – Attachment 169454 Details for
Bug 37247
On subscriptions operation allowed without authentication
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37247: [23.05.x] Send Koha::Subscription to template
Bug-37247-2305x-Send-KohaSubscription-to-template.patch (text/plain), 1.58 KB, created by
Fridolin Somers
on 2024-07-24 08:25:39 UTC
(
hide
)
Description:
Bug 37247: [23.05.x] Send Koha::Subscription to template
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2024-07-24 08:25:39 UTC
Size:
1.58 KB
patch
obsolete
>From 2c493be6e27711b62f8f7f95b9a37c99daaa9cab Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Wed, 24 Jul 2024 10:21:26 +0200 >Subject: [PATCH] Bug 37247: [23.05.x] Send Koha::Subscription to template > >--- > serials/subscription-detail.pl | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) > >diff --git a/serials/subscription-detail.pl b/serials/subscription-detail.pl >index 7532447b13..86a4e0cbb6 100755 >--- a/serials/subscription-detail.pl >+++ b/serials/subscription-detail.pl >@@ -121,13 +121,11 @@ my @irregular_issues = split /;/, $subs->{irregularity}; > my $frequency = C4::Serials::Frequency::GetSubscriptionFrequency($subs->{periodicity}); > my $numberpattern = C4::Serials::Numberpattern::GetSubscriptionNumberpattern($subs->{numberpattern}); > >-my $subscription_object = Koha::Subscriptions->find( $subscriptionid ); >+my $subscription = Koha::Subscriptions->find( $subscriptionid ); >+ > $template->param( > available_additional_fields => Koha::AdditionalFields->search( { tablename => 'subscription' } ), >- additional_field_values => { >- map { $_->field->name => $_->value } >- $subscription_object->additional_field_values->as_list >- }, >+ additional_field_values => { map { $_->field->name => $_->value } $subscription->additional_field_values->as_list }, > ); > > # FIXME Do we want to hide canceled orders? >@@ -148,6 +146,7 @@ while ( my $o = $orders->next ) { > } > > $template->param( >+ subscription => $subscription, > subscriptionid => $subscriptionid, > serialslist => \@serialslist, > hasRouting => $hasRouting, >-- >2.45.2
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 37247
:
168504
|
168513
|
168535
|
168769
|
168782
|
168783
|
169282
|
169283
|
169452
|
169453
| 169454