Bugzilla – Attachment 86538 Details for
Bug 19661
Add route for fund retrieval
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19661: Use Koha::Acquisition::Funds instead of C4::Budgets
Bug-19661-Use-KohaAcquisitionFunds-instead-of-C4Bu.patch (text/plain), 1.33 KB, created by
Martin Renvoize (ashimema)
on 2019-03-12 13:33:42 UTC
(
hide
)
Description:
Bug 19661: Use Koha::Acquisition::Funds instead of C4::Budgets
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-03-12 13:33:42 UTC
Size:
1.33 KB
patch
obsolete
>From c0710ff2a8b6d274be789de8897e44084cc28cec Mon Sep 17 00:00:00 2001 >From: Matthias Meusburger <matthias.meusburger@biblibre.com> >Date: Wed, 17 Jan 2018 11:49:14 +0100 >Subject: [PATCH] Bug 19661: Use Koha::Acquisition::Funds instead of > C4::Budgets > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/REST/V1/Acquisitions/Funds.pm | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/Koha/REST/V1/Acquisitions/Funds.pm b/Koha/REST/V1/Acquisitions/Funds.pm >index a36d3c62e1..2ba300d9c7 100644 >--- a/Koha/REST/V1/Acquisitions/Funds.pm >+++ b/Koha/REST/V1/Acquisitions/Funds.pm >@@ -19,7 +19,7 @@ use Modern::Perl; > > use Mojo::Base 'Mojolicious::Controller'; > >-use C4::Budgets; >+use Koha::Acquisition::Funds; > use JSON qw(to_json); > > use Try::Tiny; >@@ -50,10 +50,10 @@ sub list_funds { > } > > return try { >- my $funds = GetBudgets($filter); >- my @fundsArray = map { _to_api($_) } @$funds; >+ my @funds = Koha::Acquisition::Funds->search($filter); >+ @funds = map { _to_api($_->TO_JSON) } @funds; > return $c->render( status => 200, >- openapi => \@fundsArray); >+ openapi => \@funds); > } > catch { > if ( $_->isa('DBIx::Class::Exception') ) { >-- >2.20.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 19661
:
69243
|
69833
|
70603
|
83941
|
83970
|
85693
|
85694
|
85695
|
85696
|
86537
| 86538 |
86539
|
86540