Bugzilla – Attachment 176831 Details for
Bug 36163
Can't select a country for usage statistics
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36163: Usage statistics - Not possible to select a country
Bug-36163-Usage-statistics---Not-possible-to-selec.patch (text/plain), 2.00 KB, created by
Roman Dolny
on 2025-01-20 16:48:20 UTC
(
hide
)
Description:
Bug 36163: Usage statistics - Not possible to select a country
Filename:
MIME Type:
Creator:
Roman Dolny
Created:
2025-01-20 16:48:20 UTC
Size:
2.00 KB
patch
obsolete
>From 56d2f7f4e8547415d082c9c40009d314a52306c4 Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Mon, 20 Jan 2025 14:35:56 +0000 >Subject: [PATCH] Bug 36163: Usage statistics - Not possible to select a > country > >Site: .../cgi-bin/koha/admin/usage_statistics.pl > >If you try to select a country, you get an error: >== >The value of your system preference 'UsageStatsCountry' is not valid (Germany). Please select a valid one. >== > >It doesn't matter which country you chose, no country is valid. > >Test plan: >========== >1. Select a country for UsageStatsCountry system preference. >2. Go to http://<your addr>:8081/cgi-bin/koha/admin/usage_statistics.pl >3. Confirm the issue. >4. Apply the patch ; restart_all. >5. Repeat p. 2. >6. Confirm that the issue has been solved. > >Sponsored-by: Ignatianum University in Cracow >Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> >--- > .../intranet-tmpl/prog/en/modules/admin/usage_statistics.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt >index 48494d573c..2047364f05 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt >@@ -99,7 +99,7 @@ > [% PROCESS 'country-list.inc' %] > <select name="UsageStatsCountry" id="UsageStatsCountry"> > <option value=""> </option> >- [% FOREACH country IN country_strings.split(',') %] >+ [% FOREACH country IN country_strings.split('\s*,\s*') %] > [% IF country == UsageStatsCountry %] > <option value="[% country.trim | html %]" selected="selected">[% country.trim | html %]</option> > [% SET IsUsageStatsCountryValid = 1 %] >-- >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 36163
:
176822
|
176831
|
176954
|
176955
|
176956