[Koha-bugs] [Bug 10976] the assistant for reports uses the wrong value for the list of item types

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 22 13:28:18 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10976

--- Comment #1 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 38324
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38324&action=edit
Bug 10976: Fix typo itemtype vs itemtypes

When creating a new report, the limit step let you choose
itype|itemtype.
But it should be itype|itemtypes.
If you try to create a guided report and you choose this option as a
limit, you will get a warning on saving it:
  Errors found when processing parameters for report:
  itype: The authorized value category (itemtype) you selected does not exist.

Looking at the code: reports/guided_reports.pl l.657
  elsif ( $authorised_value eq "itemtypes" ) {

Test plan:
0/ Don't apply the patch
1/ Create a guided report, select Koha itemtype as a limit(step 4)
2/ Confirm you get the error when saving
3/ Apply the patch and repeat step 1
4/ There is no error and the report should work correctly

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list