diff --git a/src/main/java/no/elg/ii/util/Util.java b/src/main/java/no/elg/ii/util/Util.java index 0685c50..3590c38 100644 --- a/src/main/java/no/elg/ii/util/Util.java +++ b/src/main/java/no/elg/ii/util/Util.java @@ -39,7 +39,7 @@ public static int getNumberFromMenuOption(String text, @Nonnull Widget widget) { String substring = text.substring(text.indexOf('-') + 1); int quantity; if ("All".equals(substring)) { - quantity = widget.getItemQuantity(); + quantity = Integer.MAX_VALUE; } else if ("All-but-1".equalsIgnoreCase(substring)) { quantity = widget.getItemQuantity() - 1; } else {