From d8bddf489e40274a822d444729247d5de717b6dc 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 (cherry picked from commit 076d5be767d0b6667ce8aab0ae7b56116e48d48f) Signed-off-by: Fridolin Somers --- 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 b837bcd8ff..02a9b365a1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -482,9 +482,9 @@ [% IF Koha.Preference( 'opacbookbag' ) == 1 %] [% IF ( itemsloo.incart ) %] - + [% ELSE %] - + [% END %] [% END # / IF opacbookbag %] -- 2.39.5