Koha/reports
Jonathan Druart 0fdc1021d4 Bug 15800: Koha::AuthorisedValues - Remove C4::Koha::IsAuthorisedValueCategory
C4::Koha::IsAuthorisedValueCategory contains only 2 useful calls, from
C4::Reports::Guided and reports/guided_reports.pl
It can be replaced with
  Koha::AuthorisedValues->search({ category => $authorised_value})->count

Test plan:
1/ Create a sql report using an authorised value category, something
like:
  SELECT COUNT(*) FROM items where itemlost=<<lost|LOST>>
2/ Execute the report and confirm that everything works fine.
3/ Create a sql report using a nonexistent authorised value categor,
something like:
  SELECT COUNT(*) FROM items where itemlost=<<lost|NONEXIST>>
4/ When saving the report, you should get a warning message
  "lost: The authorized value category (NONEXIST) you selected does not exist."
5/ Save anyway and execute the report, you should get the same warning
message.

QA:
  git grep IsAuthorisedValueCategory
should not return any results
  prove t/db_dependent/ReportsGuided.t
should return green

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as described

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
2016-03-02 03:54:16 +00:00
..
acquisitions_stats.pl Bug 15250: Fix Perl error on acqisition stats page 2015-12-04 14:24:55 +00:00
bor_issues_top.pl Bug 14965: Remove C4::Dates from 'lists' in folder reports 2015-11-05 09:56:52 -03:00
borrowers_out.pl Bug 14965: Remove C4::Dates from 'lists' in folder reports 2015-11-05 09:56:52 -03:00
borrowers_stats.pl Bug 15373: More changes of Zip to ZIP on intranet 2015-12-30 16:30:35 +00:00
cat_issues_top.pl Bug 10154 Add Call number in the filter of most circulated items 2015-12-31 16:16:10 +00:00
catalogue_out.pl Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
catalogue_stats.pl Bug 7683: Relabel "acquired date" and "removed date" 2016-01-27 06:37:29 +00:00
dictionary.pl Bug 2669: Change checkboxes to radio buttons on dictionary 2016-01-27 02:42:46 +00:00
guided_reports.pl Bug 15800: Koha::AuthorisedValues - Remove C4::Koha::IsAuthorisedValueCategory 2016-03-02 03:54:16 +00:00
issues_avg_stats.pl Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
issues_by_borrower_category.plugin Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
issues_stats.pl Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
itemslost.pl Bug 14965: Remove C4::Dates from 'lists' in folder reports 2015-11-05 09:56:52 -03:00
itemtypes.plugin Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
manager.pl Bug 9006: Remove AUTOLOAD in C4::Context 2015-07-20 10:11:41 -03:00
reports-home.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
reserves_stats.pl Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
serials_stats.pl Bug 14961: Remove C4::Dates from files reports/*_stats.pl 2015-10-26 11:19:36 -03:00
stats.print.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
stats.screen.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00