Bug 18936: (follow-up) fix rental discount lookup
authorJesse Weaver <pianohacker@gmail.com>
Tue, 17 Oct 2017 23:26:31 +0000 (17:26 -0600)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 4 Feb 2020 09:56:24 +0000 (09:56 +0000)
Signed-off-by: Minna Kivinen <minna.kivinen@hamk.fi>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

C4/Circulation.pm

index fcf48f8..6c10b3d 100644 (file)
@@ -3283,19 +3283,19 @@ sub _get_discount_from_rule {
             categorycode => $categorycode,
         },
         {
-            branchcode   => '*',
+            branchcode   => undef,
             categorycode => $categorycode,
             itemtype     => $itemtype,
         },
         {
             branchcode   => $branchcode,
             categorycode => $categorycode,
-            itemtype     => '*',
+            itemtype     => undef,
         },
         {
-            branchcode   => '*',
+            branchcode   => undef,
             categorycode => $categorycode,
-            itemtype     => '*',
+            itemtype     => undef,
         },
     );