Bugzilla – Attachment 145837 Details for
Bug 32377
GetBudgetHierarchy slows down acqui/histsearch.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32377: Set param skiptotals on call of GetBudgetHierarchy in acqui/histsearch.pl
Bug-32377-Set-param-skiptotals-on-call-of-GetBudge.patch (text/plain), 1.51 KB, created by
Katrin Fischer
on 2023-01-30 23:47:53 UTC
(
hide
)
Description:
Bug 32377: Set param skiptotals on call of GetBudgetHierarchy in acqui/histsearch.pl
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-01-30 23:47:53 UTC
Size:
1.51 KB
patch
obsolete
>From 6339178d51b353b4ba73754a0aad98f8ee5de609 Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Date: Wed, 30 Nov 2022 12:33:19 +0200 >Subject: [PATCH] Bug 32377: Set param skiptotals on call of GetBudgetHierarchy > in acqui/histsearch.pl >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Calling GetBudgetHierarchy from acqui/histsearch.pl >is slow if param skiptotals is not used. > >To test: >1. Open browsers Console -> Network (F12). >2. Navigate to Order search page and perform search. >=> Take a note how long it takes to load the Search results page. >3. Apply this patch. >4. Repeat step 2. >=> Page should now load faster. > >Sponsored-by: Koha-Suomi Oy >Signed-off-by: Frédéric Demians <f.demians@tamil.fr> >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > acqui/histsearch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/acqui/histsearch.pl b/acqui/histsearch.pl >index e44c7db329..097fa3b217 100755 >--- a/acqui/histsearch.pl >+++ b/acqui/histsearch.pl >@@ -124,7 +124,7 @@ if ($do_search) { > my $budgetperiods = C4::Budgets::GetBudgetPeriods; > my $bp_loop = $budgetperiods; > for my $bp ( @{$budgetperiods} ) { >- my $hierarchy = C4::Budgets::GetBudgetHierarchy( $$bp{budget_period_id} ); >+ my $hierarchy = C4::Budgets::GetBudgetHierarchy( $$bp{budget_period_id}, undef, undef, 1 ); > for my $budget ( @{$hierarchy} ) { > $$budget{budget_display_name} = sprintf("%s", ">" x $$budget{depth} . $$budget{budget_name}); > } >-- >2.30.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 32377
:
144343
|
144891
| 145837