From ff4ffd16f859d824d5bc8ba789e5626ef3833d49 Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Mon, 13 Feb 2023 02:43:24 +0100 Subject: [PATCH] statiegeld: use correct id for deduplication key Bug introduced in fffb2d72 --- plugins/statiegeld | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/statiegeld b/plugins/statiegeld index 766620d..1c3e346 100644 --- a/plugins/statiegeld +++ b/plugins/statiegeld @@ -78,9 +78,10 @@ sub command { # args via @_ for mutable alias $cart ->add(+$addon->{price}, $d, { - plugin => $invocant->id, - addon_id => $addon->{id}, - deduplicate => join("/", $invocant->id, $addon->{id}), + plugin => $invocant->id, + addon_id => $addon->{id}, + product_id => $product->{id}, + deduplicate => join("/", $invocant->id, $product->{id}), }) ->add_contra($addon->{contra}, -$addon->{price}, "$d for \$you"); }