From 076d5be767d0b6667ce8aab0ae7b56116e48d48f Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 4 Jul 2019 12:57:17 +0000 Subject: [PATCH] Bug 23266: Add to cart fires twice on shelf page Remove some duplicate functionality between opac-bottom and opac-shelves. Test plan: [1] Before this patch, add to cart from a shelf page. Observe that the basket count is incremented with 2. [2] After this patch, it should be incremented with 1. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index 8a02c31feb..54f507f199 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -484,9 +484,9 @@ [% IF Koha.Preference( 'opacbookbag' ) == 1 %] [% IF ( itemsloo.incart ) %] - + [% ELSE %] - + [% END %] [% END # / IF opacbookbag %] -- 2.39.5