Main Koha release repository https://koha-community.org
Find a file
Fridolin Somers dfc390940d
Bug 27683: Bind results of GetAnalyticsCount to the EasyAnalyticalRecords pref
C4::Items::GetAnalyticsCount is part of the easy analytics feature.
Like Bug 20702 make early return when the system preference EasyAnalyticalRecords is disabled.
Actually it may block an item deletion for wrong reason.

Test plan :
1) Dont apply patch
2) Build an item and a linked analytical record with 773$0 and $9
3) Enable EasyAnalyticalRecords
4) Try to delete the item
5) You have an alert because linked to analytics
6) Disable EasyAnalyticalRecords
7) Try to delete the item
8) You have an alert because linked to analytics
9) Apply patch
10) Try to delete the item
11) No alert, it works :D

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>
2022-07-18 18:52:12 -03:00
acqui Bug 14680: Always subtract discount from price to calculate estimated cost 2022-07-18 11:17:50 -03:00
admin Bug 30882: Add max_result_window to index config 2022-07-18 11:23:03 -03:00
api Bug 29105: Add effective_itemtype handling to items api 2022-07-18 14:41:25 -03:00
authorities Bug 29333: Fix encoding of imported UNIMARC authorities 2022-07-08 15:43:33 -03:00
basket Bug 29871: Remove marcflavour param in Koha::Biblio->get_marc_notes 2022-06-06 14:26:51 -03:00
bin
C4 Bug 27683: Bind results of GetAnalyticsCount to the EasyAnalyticalRecords pref 2022-07-18 18:52:12 -03:00
catalogue Bug 29922: (follow-up) Remove extra sort 2022-07-18 15:11:36 -03:00
cataloguing Bug 24857: Add ability to set item group when adding a new item 2022-07-08 16:00:07 -03:00
circ Bug 30447: Check if transfers arrived or cancelled 2022-07-18 17:50:00 -03:00
clubs Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
course_reserves
debian Bug 21903: (follow-up) update documentation 2022-07-05 11:46:37 -03:00
docs
errors
etc
ill
installer Bug 29632: (QA follow-up) Add ENUM value to kohastructure.sql :-D 2022-07-18 12:09:41 -03:00
Koha Bug 30447: Check if transfers arrived or cancelled 2022-07-18 17:50:00 -03:00
koha-tmpl Bug 31163: Sort cashups newest to oldest 2022-07-18 15:10:43 -03:00
labels Bug 31137: (QA follow-up) Also fix new template page 2022-07-18 10:22:30 -03:00
lib/CGI/Session/Serialize
members Bug 20439: Sort SMS providers in alphabetical order by DB field 2022-07-18 14:51:57 -03:00
misc Bug 31122: Terminology - Replace occurences of 'Notices & slips' with 'Notices and slips' 2022-07-08 15:08:23 -03:00
offline_circ Bug 30275: Rename issues.renewals to issues.renewals_count 2022-07-05 09:45:55 -03:00
opac Bug 20439: Sort SMS providers in alphabetical order by DB field 2022-07-18 14:51:57 -03:00
patron_lists
patroncards Bug 24001: Fix patron card template edition 2022-04-28 10:49:20 -10:00
plugins
pos Bug 28481: (RM follow-up) formatting 2021-12-16 12:13:51 -10:00
recalls
reports
reserve Bug 30960: Fix JS error message when no pick-up location is selected when placing a hold 2022-06-20 10:44:04 -03:00
reviews
rotating_collections Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
serials Bug 30813: Update TransformMarcToKoha to accept a hashref 2022-06-08 11:40:29 -03:00
services
skel
suggestion
svc Bug 29051: Update svc api to allow seen renewals 2022-07-08 15:31:39 -03:00
t Bug 27683: Unit test for GetAnalyticsCount 2022-07-18 18:52:07 -03:00
tags Bug 29469: (bug 17600 follow-up) Fix tag approval/rejection from staff 2021-11-16 15:49:22 +01:00
tmp/modified_authorities
tools Bug 31000: Warn removal: param record_type can be undef 2022-07-11 18:20:15 -03:00
virtualshelves Bug 29114: Trim whitespace before the barcode 2022-07-18 15:10:17 -03:00
xt
.editorconfig
.eslintrc.json
.gitignore
.htaccess
.mailmap
.perlcriticrc
.proverc.dist
.scss-lint.yml
about.pl Bug 27667: Display a warning for records missing in Elasticsearch 2022-07-18 14:53:15 -03:00
app.psgi
changelanguage.pl
cpanfile Bug 25669: (follow-up) Minor fixes 2022-06-23 11:30:44 -03:00
fix-perl-path.PL
gulpfile.js
help.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
INSTALL
Koha.pm Bug 29632: DBRev 22.06.00.017 2022-07-18 12:05:40 -03:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL
MANIFEST.SKIP
package.json
README
README.md Bug 27092: Remove note about "synced repo" from README.md 2020-11-25 16:31:58 +01:00
README.robots Bug 6411 add another example to README.robots 2011-07-05 14:48:05 +12:00
rewrite-config.PL
yarn.lock

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