From: Marcel de Rooy Date: Thu, 4 Jul 2019 12:57:17 +0000 (+0000) Subject: Bug 23266: Add to cart fires twice on shelf page X-Git-Url: http://git.equinoxoli.org/?p=koha-equinox.git;a=commitdiff_plain;h=076d5be767d0b6667ce8aab0ae7b56116e48d48f 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 --- 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 8a02c31..54f507f 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 %]