Main Koha release repository https://koha-community.org
Find a file
David Cook 874bf73b7c Bug 34051: Cache empty hashref for non-existent authorised values
When fetching authorised value descriptions, we need to handle
scenarios where a value doesn't exist in the cache and doesn't
exist in the database. In this situation, we return an empty
hashref, and this patch makes us cache this empty hashref.

This is important because otherwise the function
Koha::AuthorisedValues->get_description_by_koha_field will
do a database call every time it encounters the same value that
doesn't exist in the authorised values table.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit a3a0aaec10)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 25230f4cf9)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
2023-07-18 10:31:49 +00:00
acqui Bug 33653: Use filter_by_active instead 2023-05-15 12:06:44 +00:00
admin Bug 30649: Vendor EDI account passwords should be encrypted in the database 2023-06-02 11:49:09 +00:00
api Bug 33859: Use the phrase 'Identity providers' instead of 'Authentication providers' 2023-06-12 10:14:43 +00:00
authorities Bug 33803: Remove comment about tab width 2023-06-12 10:28:26 +00:00
basket Bug 33102: Display fields from biblioitems in OPAC/staff interface cart 2023-05-12 16:34:19 +01:00
bin
C4 Bug 33987: Combine multiple db updates one in BatchCommitRecords 2023-07-18 10:29:00 +00:00
catalogue Bug 33788: Limit the number of old issues rows returned 2023-06-08 17:22:32 +00:00
cataloguing Bug 32959: Don't store results of autobarcode in item editor templates 2023-06-08 16:51:19 +00:00
circ Bug 33345: On-site checkout checkbox does not work since issue date using flatpickr 2023-04-18 12:04:58 +00:00
clubs Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
course_reserves Bug 31893: Use checkauth and do not fetch about.tt template 2023-01-31 14:09:05 +00:00
debian Bug 33371: Add [Install] section to koha-common.service 2023-06-08 16:59:56 +00:00
docs Bug 33899: Add the 23.11 release team 2023-07-12 09:36:01 +00:00
erm Bug 32922: Remove space in shebang 2023-02-24 07:51:37 +00:00
errors
etc Bug 33580: Bring back ability to mark item as seen via SIP2 item information request 2023-05-16 07:35:11 +01:00
ill Bug 28909: Allow illview to use backend template 2022-08-09 13:21:39 -03:00
installer Bug 34033: (bug 30649 follow-up) Fix update typos 2023-07-18 10:30:09 +00:00
Koha Bug 34051: Cache empty hashref for non-existent authorised values 2023-07-18 10:31:49 +00:00
koha-tmpl Bug 33417: Fix translation in toolbar 2023-07-18 10:23:03 +00:00
labels Bug 31633: (follow-up) Group template params 2022-10-03 14:09:59 -03:00
lib/CGI/Session/Serialize
members Bug 33803: Remove comment about tab width 2023-06-12 10:28:26 +00:00
misc Bug 33900: Fix handling of due_digest 2023-07-12 09:16:18 +00:00
offline_circ Bug 30016: Remove GetOpenIssue subroutine 2022-08-31 08:50:37 -03:00
opac Bug 33957: Add normalized_oclc and only fetch when needed 2023-07-12 09:36:04 +00:00
patron_lists
patroncards
plugins Bug 30367: (follow-up) Same adjustment for gitlab 2023-05-12 15:58:09 +01:00
pos Bug 30619: Add email receipt to POS 2022-09-07 15:59:34 -07:00
recalls Bug 33220: Fix recalls to pull to not show in transit or allocated items 2023-06-07 12:18:10 +00:00
reports Bug 27513: Add notes to variables for report parameters template 2023-04-16 18:41:07 +01:00
reserve Bug 30687: Allow pickup location to be forced when override is allowed 2023-05-15 13:01:46 +00:00
reviews
rotating_collections
serials Bug 33901: (bug 30718 follow-up) Predition pattern - don't set end date to today 2023-07-12 09:36:03 +00:00
services
skel
suggestion Bug 33421: Fix filtering suggestions by status 2023-06-08 16:43:04 +00:00
svc Bug 33408: Fetch sysprefs from svc/config/systempreferences 2023-05-15 13:15:07 +00:00
t Bug 33176: Enforce bad values 2023-07-18 10:08:37 +00:00
tags Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
tools Bug 33595: (bug 26628 follow-up) Fix authorization for tools-home.pl 2023-06-07 10:16:07 +00:00
virtualshelves Bug 16522: (follow-up) MARC display templates and get_marc_host fixes 2023-01-31 17:15:27 +00:00
xt Bug 30002: Remove unused xt/perltidyrc 2023-07-12 09:16:19 +00:00
.editorconfig
.eslintrc.json
.gitignore Bug 33710: Ignore how-to related files 2023-05-15 13:03:55 +00:00
.htaccess
.mailmap Update .mailmap 2023-07-18 09:22:47 +00:00
.perlcriticrc
.perltidyrc Bug 30002: Adjust perltidy 2023-07-12 09:16:19 +00:00
.proverc.dist
.stylelintrc.json Bug 31528: (follow-up) A few additional rules 2022-10-03 08:23:15 -03:00
about.pl Bug 33934: Add more detail to 'No encryption_key in koha-conf.xml' 2023-06-12 11:53:36 +00:00
app.psgi
build-resources.PL Bug 32609: Use the current yarn.lock to generate node_modules 2023-03-10 12:27:47 +00:00
changelanguage.pl
cpanfile Bug 32558: (QA follow-up) Move ForkManager to required 2023-03-08 14:39:16 +00:00
cypress.json Bug 33408: Extend defaultCommandTimeout for cypress 2023-05-15 13:15:43 +00:00
fix-perl-path.PL
gulpfile.js Bug 32609: Improve yarn build commands 2023-03-10 12:27:27 +00:00
help.pl
INSTALL
Koha.pm Bug 32478: DBRev 22.11.07.001 2023-07-18 09:00:47 +00:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl Bug 33133: Add fast cataloging to 'Cataloging' page 2023-04-11 10:51:27 +00:00
Makefile.PL Bug 30002: (QA follow-up) Add .perltidyrc to Makefile.PL mapping 2023-07-12 09:41:28 +00:00
MANIFEST.SKIP
package.json Bug 33066: Introduce a KohaTable Vue component 2023-05-11 17:01:22 +01:00
README
README.md
README.robots
rewrite-config.PL
tsconfig.json Bug 32030: Move cypress to t - fix build_js/watch_js 2022-11-08 09:44:52 -03:00
webpack.config.js Bug 32806: Move main-erm.ts to modules/erm.ts 2023-02-28 18:54:57 +00:00
yarn.lock Bug 33066: Introduce a KohaTable Vue component 2023-05-11 17:01:22 +01:00

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo