Bug 24105: Fix error when running longoverdue.pl with --itemtypes
authorLiz Rea <liz@bywatersolutions.com>
Mon, 25 Nov 2019 17:20:51 +0000 (11:20 -0600)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 23 Jan 2020 10:26:05 +0000 (10:26 +0000)
To test:

Run Longoverdue.pl as koha-shell with both 1 and several --itemtypes specified
notice that it has an error
apply this patch
run longoverdue.pl as koha-shell with both 1 and several --itemtypes specified
notice there isn't an error anymore!

Signed-off-by: David Roberts <david.roberts@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

misc/cronjobs/longoverdue.pl

index 754cb62..9763937 100755 (executable)
@@ -71,8 +71,8 @@ GetOptions(
     'category=s'      => $borrower_category,
     'skip-category=s' => $skip_borrower_category,
     'list-categories' => \$list_categories,
-    'itemtype=s'      => \$itemtype,
-    'skip-itemtype=s' => \$skip_itemtype,
+    'itemtype=s'      => $itemtype,
+    'skip-itemtype=s' => $skip_itemtype,
     'list-itemtypes'  => \$list_itemtypes,
 );