Bug 17109: Remove second authentication from (opac-)sendbasket
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 11 Aug 2016 11:10:21 +0000 (13:10 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Sep 2016 13:37:46 +0000 (13:37 +0000)
commit36b9fa32b16d5928dd9a35b04ff2144b4f77f314
treedc15bb30c6f251f0817c3151d5bd18fea196e10c
parenta9d3eb233bffab3b974e51f34adf502548341c3c
Bug 17109: Remove second authentication from (opac-)sendbasket

Patch deals with opac and intranet variant.
If we authenticated the first time, it is not necessary to do it
a second time rightaway.

Replaces a call to get_template_and_user (including checkauth) by
gettemplate.

Also removes duplicate use C4::Biblio statements.

Test plan:
[1] Put a few books in the cart.
[2] Send the cart from OPAC.
[3] Send the cart from intranet.

Tested 3 patches together. Works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
basket/sendbasket.pl
opac/opac-sendbasket.pl